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

Fix setTabindex from removing tabindex attributes when set to false #603

Merged
merged 1 commit into from May 29, 2021

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented May 29, 2021

Problem

Currently, when setting the setTabindex option to false on either @vrembem/modal or @vrembem/drawer components, they will remove the tabindex attribute from the components specific dialog elements. Tabindex should instead just not be applied while any manually set tabindex attributes should be unaltered.

Solution

This PR removes the state parameter from the core setTabindex function and no longer removes manually added tabindex attributes if the setTabindex option is set to false. This effects both @vrembem/modal and @vrembem/drawer components.

@sebnitu sebnitu merged commit fb4ae6d into master May 29, 2021
@sebnitu sebnitu deleted the fix-tabindex-disable branch May 29, 2021 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant