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

Interactive elements injected into an inert subtree will not be properly restored. #72

Open
robdodson opened this issue Oct 9, 2017 · 1 comment

Comments

@robdodson
Copy link
Collaborator

@bkardell mentioned a bug that I haven't had a chance to verify.

If you have an ol, where each li contains an anchor and a button. Inert the ol, and inject a new li also containing an anchor and a button. When you un-inert the ol the new li's interactive elements will still have tabindex=-1.

@bkardell
Copy link
Collaborator

bkardell commented Oct 9, 2017

Thanks Rob.. Im unfortunately unable to get to a functional desktop atm but think that if you look at the test

it('should apply to dynamically added content', ...

this would be an ideal place to make sure that removing inert doesn't leave a -1 on those dynamically added elements that default to 0

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

No branches or pull requests

2 participants