I came across a situation where I have to focus on the h1 element of an overlay instead of moving to the next tabbable element.
The overlay appears after a service call triggered by blur event from the first input text field.
Every time the blur event is fired, the focus shifts to the next tabbable element (the second input text field) before reaching the h1 element of the overlay. How can I fix this problem?
I resorted to a workaround of bringing back the focus to the first input text field and then to the h1 element of the overlay, but I am not satisfied with this solution.
I also attempted using preventDefault
and stopPropagation()
, but they did not provide a resolution.