Created
November 12, 2024 21:59
-
-
Save codexico/038efdf644bd61ceb0cf36f18c0f7af8 to your computer and use it in GitHub Desktop.
TIL 20241112 - Firefox persists the dynamic disabled state without this hack.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://evilmartians.com/chronicles/html-best-practices-for-login-and-signup-forms | |
// A lot of good berst practices for login forms | |
// 10. Prevent forms from being sent twice | |
// Fix for Firefox. It persists the dynamic disabled state without this hack. | |
submitButton.autocomplete = 'off' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment