Skip to content
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

fixes 15058 - keyboard navigation for tieredmenu with hidden elements #15060

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

Nas3nmann
Copy link

Fixes #15058

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Mar 18, 2024 7:35am

@@ -288,7 +288,11 @@ export class TieredMenuSub {
}

getAriaPosInset(index: number) {
return index - this.items.slice(0, index).filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')).length + 1;
return index - this.items.slice(0, index).filter((processedItem) => {
let isItemVisible = this.isItemVisible(processedItem);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use const instead of let because you are not reassigning the variables

@cetincakiroglu
Copy link
Contributor

Hi @Nas3nmann

Thanks a lot for the effort and support!

@cetincakiroglu cetincakiroglu merged commit 11766c3 into primefaces:master Mar 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TieredMenu: Keyboard navigation does not skip non-visible menu items
4 participants