kobaltedev / kobalte

A UI toolkit for building accessible web apps and design systems with SolidJS.
https://kobalte.netlify.app/
MIT License
1.3k stars 75 forks source link

NavigationMenu should close immediately when `closeOnSelect` #490

Open paularmstrong opened 2 months ago

paularmstrong commented 2 months ago

Is your feature request related to a problem? Please describe.

When including closeOnSelect on a NavigationMenu.Item, the menu does not close immediately, but waits for the skipDelayDuration. This causes the UI to feel sluggish, because typical expectation is to update immediately for user interaction.

Describe the solution you'd like

If closeOnSelect is set and a NavigationMenu.Item is clicked or selected, the menu should close immediately.

Describe alternatives you've considered

None

Additional context