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
A close function let's us manually close Menu.Items. Currently, there seems to be no way of doing this for Menu but is available for Popover and Disclosure.
Here's a scenario where a manual close function is needed for Menu:
User clicks on a menu item which opens a new tab
New tab is opened immediately
Menu.Items is closed automatically by headlessui
User sees a new tab open before the Menu is closed, which is very jarring UX
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A
close
function let's us manually closeMenu.Items
. Currently, there seems to be no way of doing this forMenu
but is available forPopover
andDisclosure
.Here's a scenario where a manual
close
function is needed forMenu
:Beta Was this translation helpful? Give feedback.
All reactions