Prop to disable default selection of first MenuItem when opening a Menu #503
Replies: 6 comments 1 reply
-
We need more community demand on this issue. |
Beta Was this translation helpful? Give feedback.
-
I think this is related to the issue: primefaces/primevue#4481 ? |
Beta Was this translation helpful? Give feedback.
-
I would also like to request this feature. It makes the styling look odd by default and while there are work arounds it seems like something that should be configurable as part of the component. |
Beta Was this translation helpful? Give feedback.
-
Another issue this presents is if you are using a menu to toggle an option (such as a theme menu). If you use class to background highlight the currently selected option, the focus hides it. |
Beta Was this translation helpful? Give feedback.
-
I support the idea of getting an option for removing the focus. |
Beta Was this translation helpful? Give feedback.
-
I’m experiencing the same issue, and it’s a significant problem when developing accessible single-page websites. It looks very odd when navigating to a section, only for the focus to unexpectedly jump to the first item. Is there any update or a current workaround available? |
Beta Was this translation helpful? Give feedback.
-
When we open a Menu, the first Menuitem gets selected by default. I know this is by design, but I am curious to understand the reason. Is it for keyboard interactions?
I also noticed that there is a prop called 'autoOptionFocus' for Dropdown component for disabling this behavior. Is it possible to have a similar prop for the other Menu components too? It would be a great addition for us.
Beta Was this translation helpful? Give feedback.
All reactions