Skip to content

#10098 moving disabled tab click handlers onto role=tabpanel elements fo... #1261

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

Closed

Conversation

mpiotrowicz
Copy link
Contributor

...r better Voiceover announcement

Not sure if this is the best way to fix. Potentially this event binding is instead moved inside of _processTabs as it has to happen on the elem with role="tablist" to fix the bug

});

// bind events to ul for better Voiceover announcement
.find(".ui-tabs-nav")
Copy link
Member

Choose a reason for hiding this comment

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

This will bind to nested tabs as well. You can move this below the call to _processTabs() and then use this.tablist.

Copy link
Member

Choose a reason for hiding this comment

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

This would need to be after _processTabs() anyway, since the class generally won't be added by users, so this won't find anything.

moving tab list event bindings for disabled li's from selector
onto this.tablist inside of processTabs().
Adding an unbind call on tab list in destroy() for cleanup
@mpiotrowicz
Copy link
Contributor Author

@scottgonzalez moved delegation to _processTabs and had add to an extra unbind() inside of _destroy so that tests pass when tabs are removed

@mpiotrowicz
Copy link
Contributor Author

ping @scottgonzalez is this something that might still be useful?

@scottgonzalez
Copy link
Member

Sorry, I was on vacation when you updated this, then I got busy with the 1.11.0 release. This looks good now. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants