ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Improve validation for exam time limit #592

Closed kjuej closed 4 years ago

kjuej commented 4 years ago

I'm submitting a...

Context

Exam time limit can have multiple "-","+","e" characters.

Screen Shot 2020-09-01 at 10 52 30
hrvojevu commented 4 years ago

This issue occurs due to e, - and + are being interpreted as numbers when used in number type input. Vee-validate doesn't handle this particular use case, more info here: https://github.com/logaretm/vee-validate/issues/1667.

Solution to this problem is either disallowing e, +, - keys via @keypress event or removing type=number attribute on input thus allowing all characters and allowing vee-validate to validate.