4 ms·
> I don't really understand why there isn't something like a "singleSubmit" attribute addEventListener has a 'once' option that will only fire the event once.
by akira2501 3y ago
> I don't really understand why there isn't something like a "singleSubmit" attribute
addEventListener has a 'once' option that will only fire the event once. If you're willing to handle all the error cases, it seems like the easiest option.