As it happens, determining whether or not an element can be focused is non-trivial. My selector here was actually allowing for some disabled elements to occupy tab stops, which was causing some elements to retain focus for an extra tab. This pulls in the tabbable library which implements a more comprehensive method of determining focusability.
As it happens, determining whether or not an element can be focused is non-trivial. My selector here was actually allowing for some disabled elements to occupy tab stops, which was causing some elements to retain focus for an extra tab. This pulls in the
tabbable
library which implements a more comprehensive method of determining focusability.