Last active
July 6, 2023 15:57
-
-
Save ihorduchenko/6f82981f680e3df24cccc77e2cbccca4 to your computer and use it in GitHub Desktop.
Prevent 'change' event from being triggered twice (especially on radio buttons)
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
el.addEventListener('change', (e) => { | |
e.stopImmediatePropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment