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
Thanks for providing Bouncer, a super handy and light package!
One development experience issue I ran into, was trying to preventDefault from the form onsubmit event, and it appeared to have no effect.
I called preventDefault in my onsubmit handler, and was awaiting a fetch response, but the form would always submit, before I could process the response.
Not until I spotted the 'disableSubmit' option, did I realize I had to set that as true to completely prevent submit from occurring.
Maybe there is opportunity to state that more explicitly in the readme, in hopes of helping someone else avoid running in to this scenario. Or perhaps, I just missed something obvious, and should have read the docs in greater detail!
Regardless, I find Bouncer very practical and useful!
Much appreciated. Steve.
The text was updated successfully, but these errors were encountered:
Thanks for providing Bouncer, a super handy and light package!
One development experience issue I ran into, was trying to preventDefault from the form onsubmit event, and it appeared to have no effect.
I called preventDefault in my onsubmit handler, and was awaiting a fetch response, but the form would always submit, before I could process the response.
Not until I spotted the 'disableSubmit' option, did I realize I had to set that as true to completely prevent submit from occurring.
Maybe there is opportunity to state that more explicitly in the readme, in hopes of helping someone else avoid running in to this scenario. Or perhaps, I just missed something obvious, and should have read the docs in greater detail!
Regardless, I find Bouncer very practical and useful!
Much appreciated. Steve.
The text was updated successfully, but these errors were encountered: