-
Notifications
You must be signed in to change notification settings - Fork 106
fix(core): resolves #2408 for roving-tabindex-controller #2410
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
fix(core): resolves #2408 for roving-tabindex-controller #2410
Conversation
🦋 Changeset detectedLatest commit: 2194a4b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
bennypowers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should save the state in hostDisconnected, or at least not destroy it in hostConnected, OR we should make it clear to users that this is how they need to hold it
Co-authored-by: Benny Powers <bennypowers@users.noreply.github.com>
….com:patternfly/patternfly-elements into fix/roving-tabindex-controller/aria-expanded
.bind() creates a new object on each call, so we can't use it to removeEventListener. Also makes the itemsContainer default to the host at each initItems call
What I did
roving-tabindex-controller'sinitItems()to limitkeydownlistener to a specific container element instead of hostaria-expanded=truefromhorizontalyOnlykeyboard navigationTesting Instructions
Since this is a controller, the way I had to test it was to temporarily do the following:
roving-tabindex-controller.jstopf-tabsandpf-jumplinkselement folders.pf-tabs/BaseTabs.jsandpf-jumplinks/pf-jumplinks.jsto./roving-tabindex-controller.js.