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.
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.