Menubar: (it even exists in the docs) on root list; it selects first element on click, replaces it with the right one when click is released #7471
Labels
Type: Bug
Issue contains a defect related to a specific component.
Describe the bug
When clicked and held down on the red dot, it highlights the first element. The aria-activedescendant prop having first item as selected (shown below).
When click is released it corrects itself:
it is a minor inconvenience but it causes flickering when the menu item is selected for the first time.
(mine only has css coloring changes. no semantic changes to the code I took from the docs thus it can be replicated in the docs as well. here -> https://primereact.org/menubar/#template )
Reproducer
https://stackblitz.com/run?file=src%2FApp.tsx(it is considered temporary project thus has no direct blitz link. Use the docs instead. the bug also exist here -> https://primereact.org/menubar/#template )System Information
Steps to reproduce the behavior
Go to: https://primereact.org/menubar/#template
Click on contact but do not release it. Home element (a.k.a. first element of the list) will highlight. When released, contact element will highlight.
Expected behavior
When clicked on an element it should not flicker the first element of the list. It should directly highlight the correct one.
The text was updated successfully, but these errors were encountered: