I have a weird error in forms. When I have a text ...
# kvision
t
I have a weird error in forms. When I have a text form field, set the focus in it (click) and then press enter it tries to submit the form and reload the page and url is changed from
Copy code
<http://localhost:3000/#/myroute>
to
Copy code
<http://localhost:3000/?#/myroute>
Have you seen it?
r
I'm on holiday so I can't check But do you have any submit inputs in this form?
Don't know if you have resolved this issue, but this behavior is expected when you have a single input within html form. See: https://www.tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/
You can prevent submit by adding an event handler to your form panel:`
Copy code
onEvent {
                    submit = {
                        it.preventDefault()
                    }
                }
t
Thank you. I had missing button with type "submit" and it caused implicit form submission.