DEV Community

Discussion on: Accessible and adaptive select-menu's using react-laag and downshift

Collapse
zeitvertrieb profile image
zeitvertrieb • Edited on

Hi Erik, Thanks for this read! great example. I tried to use this and found one issue – since the Menu is rendered in DOM not in root and right before body end the autofocus causes a automatic scroll to the end of my view (although the menu is in the header). I hope I did describe this clearly.
any ideas how to prevent this? thanks.

Collapse
initmaze profile image
INITMAZE • Edited on

Add prop "container" (node element) to ToggleLayer.