Answer the question
In order to leave comments, you need to log in
How to make it so that when clicking on an element with tabindex there is no autofocus?
How to make it so that when clicking on an element with tabindex there is no autofocus?
For example, a button with tabindex should not remain in focus after clicking on it.
Answer the question
In order to leave comments, you need to log in
Call the blur method on an element. If you just visually need the element not to change with focus, then you can simply style the element for the :focus pseudo-class through css
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question