Skip to content

Use a native FORM element for Explore search

Justin Reese requested to merge 173-formify-explore-search into main

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:

  1. On main / production, open Explore and open the Search menu/filter
  2. Enter a keyword and try to submit the form using Return/Enter
  3. It won't work; you will have to click the "Search" button
  4. Switch to 173-formify-explore-search
  5. Try again; should now submit!

Closes https://code.librehq.com/ots/clients/lfc/torque-tracker/-/issues/173

Merge request reports