-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu/TieredMenu: First Element focussed when opening by button trigger #13818
Comments
Would be nice to have this fixed |
I'm running into this with the menu component on PrimeNG |
So small issue, but it's really confusing the users. Any updates? |
Ich looked at the primeng codebase and found some code that specifically enables this behaviour, so I assume this might be a feature not a bug. However, I don't really understand it from a UI perspective, so maybe someone from the team can at least explain it? |
Can't confirm this. For me it's still happening on the primeng.org site when selecting version 17.1.0 |
@jermylucas Thx for response and for the try, but unfortunately it not work on priming.org with selected 17.3.0 (latest) version. Are you sure that it's already used on the priming.org? Is this fix released in the 17.3.0? Maybe now we can try to check it in the apps? |
I can confirm it's still an issue in 17.3.3. |
Just wanted to mention that this part of the code doesn't seem right. I don't have time right now to experiment, though: primeng/src/app/components/menu/menu.ts Lines 439 to 452 in f305b27
Shouldn't this |
Any update? |
It looks like it is still happening |
It would be nice if this could be fixed |
This would be a nice small fix. It is confusing, especially for menus with 2 items. Hovering the next item in the list makes both look active. |
Please fix this problem, it is extremely annoying. Or at least give us a way to control the focus behavior. |
I created fix for this one. Let's wait for feedback from team :) |
Describe the bug
When opening a Menu or TieredMenu, the first menu entry automatically has the p-focused class with the corresponding styling.
Environment
Angular 16 app. Can also be reproduced on the demo page of primeng
Reproducer
No response
Angular version
16.2.8
PrimeNG version
16.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.1
Browser(s)
Chrome 117, Firefox 118
Steps to reproduce the behavior
Expected behavior
The first entry should not be highlighted
The text was updated successfully, but these errors were encountered: