You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is right now, the menu mounts when menuIsOpen and unmounts when !menuIsOpen. There are cases for which it would be preferable that the menu is always mounted, but is hidden with display: none when !menuIsOpen. For example, Headless UI offers an unmount prop in their Dropdown Menu component: https://headlessui.com/react/menu#menu-items
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As it is right now, the menu mounts when
menuIsOpen
and unmounts when!menuIsOpen
. There are cases for which it would be preferable that the menu is always mounted, but is hidden withdisplay: none
when!menuIsOpen
. For example, Headless UI offers anunmount
prop in their Dropdown Menu component: https://headlessui.com/react/menu#menu-itemsBeta Was this translation helpful? Give feedback.
All reactions