-
-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Labels
🏁 status: ready for workReady for workReady for work💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🛠 goal: fixBug fixBug fix🟩 priority: lowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed
Description
Description
Currently, users can enter whitespace characters (spaces, tabs) in the search input field, which is not being handled properly. If the user submits the form with just whitespace, the form processes the input as a valid query. However, the form should treat input that contains only whitespace as invalid and display an error message, preventing submission.
Reproduction
- Open the search form.
- Enter a query that contains only spaces or tabs.
- Submit the form.
Expectation
- When the user submits the search form, any leading or trailing whitespace in the input should be removed (using trim()).
- If the input is empty (or becomes empty after trimming), the form should show an error message indicating that the query cannot be blank.
- The form should not proceed with the search if the query is invalid.
Environment
- Device: laptop
- OS: Windows 11
- Browser: Chrome
- Version: 117
- Other info: 1920x1080
Additional context
This issue affects form validation for searches and user experience when submitting search queries.
Resolution
- I would be interested in resolving this bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🏁 status: ready for workReady for workReady for work💻 aspect: codeConcerns the software code in the repositoryConcerns the software code in the repository🛠 goal: fixBug fixBug fix🟩 priority: lowLow priority and doesn't need to be rushedLow priority and doesn't need to be rushed
Type
Projects
Status
Backlog