WICG / inert

Polyfill for the inert attribute and property.
Other
924 stars 81 forks source link

Don't save tabindex set by inert as saved tabindex #117

Closed alice closed 5 years ago

alice commented 5 years ago

This was causing issues with elements added to an inert root, as the mutation observer would observe the tabindex changing when the element was managed, and then re-manage the element, saving '-1' as the saved tabindex, meaning that when the element was unmanaged it would write '-1' back as the tabindex.

alice commented 5 years ago

@enoh-barbu @robdodson after doing some digging on #116, I think this is the root cause. I pulled the test over from that PR.