Conversation
|
Thanks for your countless contributions! You're a real pioneer of this project :) I have some questions about this PR though, what are the benefits of switching to a form? I understand that not everyone wants to run Javascript, mainly for security reasons. |
|
The change is mostly semantic as it groups the input elements in a form to tell the browser that they belong together. The benefit is that things work the way the user expects them to, without having to manually handle things we used to do with custom js.
While not strictly part of the form rework, I also changed the js code to reenable the inputs in the event of an unknown error. Feel free to test it. As it's a bit bigger change and I'm not very familiar with javascript 😅 |
|
We could also go one step further and allow the user to submit the form without having javascript enabled. But that would require changes to |
|
The best way would probably to handle the POST of the form in <form action="/" method="post"> |
|
Understood! Yeah, I was thinking of potentially trying to remove all JS from it... will test out your branch and explore what may be possible. Thanks again for your countless contributions :) |
|
We can merge the current state and try to replace the JS based logic later on. |
This PR switches the page to use a form to group the inputs. This allows the required field and enter key handling to work without Javascript.