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
hello, when we open the modal as we click on the modal button, the active element in this case is the modal button itself so i think we need to add an keydown (Escape) event listener to this modal line to be able to close the modal if we press the escape button before we press tab to focus on the modal.
let previousFocusedElement = document.activeElement; previousFocusedElement.addEventListener("keydown", (event) => { if (event.keyCode === 27) close(); });
Add a note to the documentation about how to use the answers branch.
The text was updated successfully, but these errors were encountered: