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 'Description' field while editing course description #1038

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

Comments

@dujes
Copy link

dujes commented Nov 24, 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 only reproducible while editing the description of an existing course.

Steps to Reproduce

  1. Create a new course, or open any already existing course
  2. Navigate to Settings page of that particular course
  3. Enter {one char} (for example, one letter) + {space} in the 'Description' field (space can be added at the beginning or end)
  4. Click anywhere on the screen (outside of the 'Description' field frame)
  5. Observe

Expected Behavior

'The description field must be at least 2 characters' validation message should appear below "Description' field while user tries to save changes when 'Description' field input = 1 visible char.

Screenshot 2022-11-24 at 10 48 02

Current Behavior

It's possible to save 'Description' with only one visible char while editing course general settings.

Screenshot 2022-11-24 at 10 44 48

Screenshots

https://www.loom.com/share/72abb4f3a63d450fbff33809d0da1611

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