1
I’m making a script to throw errors with javascript and in this function it focuses on the field that is with errors. In some cases, when the field is not visible, for example, an error is shown on the console, nothing so serious as to interrupt my application, the error says that the field is not focusable. As these mistakes make me uneasy I want to avoid them and so I want to make a conditional to check if a field can be focused with the .focus
or not.