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

Trim string entered in the 'Tag name' input field while adding a new tag #1041

Open
1 of 4 tasks
dujes opened this issue Nov 28, 2022 · 0 comments
Open
1 of 4 tasks
Labels
🚨 bug Something isn't working

Comments

@dujes
Copy link

dujes commented Nov 28, 2022

I'm submitting a...

  • Bug report
  • Regression (a behavior that used to work and stopped working in a new release)
  • Feature request
  • Documentation issue or request

Context

Issue is reproducible while adding a new tag to any course.

Steps to Reproduce

  1. Click on 'Add Tag' icon that is visible in the bottom-right corner of any course card in the catalog
  2. Enter {one char} (for example, one letter) + {space} in the 'Tag name' input field
  3. Save and Observe

Expected Behavior

'The name field must be at least 2 characters' validation message should appear while trying to save the 'Tag' when {one char } + {space} is entered in the 'Tag name' input field.

Current Behavior

It's possible to save 'Tag' with only one visible char while adding a new tag to any course.

Notes

Validation message should disappear when total number of entered chars is ≥ 2.

Screenshots

https://www.loom.com/share/78ac7f89ab53441592a07e0dc0adc095

@dujes dujes added the 🚨 bug Something isn't working label Nov 28, 2022
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