ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Trim string entered in the 'Description' field while editing course description #1038

Open dujes opened 1 year ago

dujes commented 1 year ago

I'm submitting a...

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