Skip to content

Instantly share code, notes, and snippets.

@codexico
Created November 12, 2024 21:59
Show Gist options
  • Save codexico/038efdf644bd61ceb0cf36f18c0f7af8 to your computer and use it in GitHub Desktop.
Save codexico/038efdf644bd61ceb0cf36f18c0f7af8 to your computer and use it in GitHub Desktop.
TIL 20241112 - Firefox persists the dynamic disabled state without this hack.
// 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