You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following will incorrectly return false since neither of the above have an attribute value of the string "true":
/** * Test whether a Form Element currently has focus * @return {boolean} */gethasFocus(){// Pulled from https://www.w3schools.com/html/html_form_elements.aspconstformElements=["input","select","textarea","option","[contentEditable=true]"];constselector=formElements.map(el=>`${el}:focus`).join(", ");returndocument.querySelectorAll(selector).length>0;}
The text was updated successfully, but these errors were encountered:
Originally in GitLab by @mattexdee
Originally posted by stwlam (he/him): https://discord.com/channels/170995199584108546/872553750877835264/929081310205595689
The text was updated successfully, but these errors were encountered: