Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug - input validation does not trim whitespaces #4499

Open
3 tasks done
jeoffreyfischer opened this issue Apr 22, 2024 · 0 comments
Open
3 tasks done

🐛 Bug - input validation does not trim whitespaces #4499

jeoffreyfischer opened this issue Apr 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jeoffreyfischer
Copy link

Describe the issue that you're seeing. Any Loom videos or screenshots usually help a lot!

Description
Most TinaCMS input boxes do not trim the string that's typed inside them e.g. search feature.
This is a problem as searching for "keyword" will result in a success while searching for " keyword" won't due to the whitespace.
Every input boxes should trim their content.

Screenshot
image
Figure: Search input does not trim the string – if user clicks on “search” here, the list will be empty due to the whitespaces

Reproduction

N/A as this bug is found in every search fields in Tina

Steps to reproduce

  1. Navigate to https://www.ssw.com.au/admin/index.html#/collections/consulting/~
  2. In the search input, type " database "
  3. Click the search button "🔍"
  4. The result will be an empty list due to the whitespaces before and after the word "database"

Note: this issue occurs not only for the search, but also for other input validations

System Info

Windows 11, Chrome

Validations

@jeoffreyfischer jeoffreyfischer added the bug Something isn't working label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant