Use a native FORM element for Explore search
Prior to this MR, submitting the Explore search form required clicking on the Search button.
Now, the form can be submitted by clicking Return/Enter.
This is because now we wrap the controls in a native <form>
element and bind our search handler to the form's submit
event rather than the submit button's click
event.
Testing:
- On
main
/ production, open Explore and open the Search menu/filter - Enter a keyword and try to submit the form using Return/Enter
-
❌ It won't work; you will have to click the "Search" button - Switch to
173-formify-explore-search
-
✅ Try again; should now submit!
Closes https://code.librehq.com/ots/clients/lfc/torque-tracker/-/issues/173