Form `submit` event is not prevented #70
Comments
|
Whoops! Good catch. Yes, I think we should add a |
|
I started to tackle this issue but I don't know how to correctly avoid boilerplate code inside components actions. I may ask some help later for that. |
|
Feel free to tackle this issue now, but as a heads up the forms will be switching to a new, Hooks-based version of Formless in the next month or two. Please go ahead if you'd like to, but the issue should be fixed then anyway :) |
|
I have almost finished it but I don't see the point of integrating it if it is replaced right after. Thank you for letting me know. I can't wait to see and learn the implementation with hooks :D |
|
Shouldn't the Formless stuff validate on |
|
Yes, that would be the better approach when using a |
|
I say this because I'm trying to do something similar and am lost in a type error with all the row stuff :( |
|
I agree Formless is quite confusing. Fortunately for us all, the Hooks version of Formless is not far away and is considerably easier to use! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

The browser navigate the current page (from https://wryk.github.io/purescript-halogen-realworld/#/login to https://wryk.github.io/purescript-halogen-realworld/?#/login) when logging in, bypassing login app behavior and re-displaying the same login form. I can consistently reproduce this bug on both submit button click and enter keypress with Firefox 79 and Chromium 84 on the url without the empty query component (
?).This is because the app doesn't prevent native
submitevent behavior from the form (and instead rely onclickevent from the submit button to proceed with authentication). I can't explain why this is working when the url contains an empty query component.The bug can be partially mitigated by using a button with
type=buttonor properly by preventing default behavior ofsubmitevent. The later is usually the way forms are handled on SPA.submiteventOthers form may also be concerned by this problem.
The text was updated successfully, but these errors were encountered: