Affects Version/s: HTML Form Entry 3.8.0
Fix Version/s: HTML Form Entry 3.9.2
`checkNumber()` is an ad-hoc routine that goes with `NumberFieldWidget`.
The validations done by the function on Numeric concepts sets classes "legalValue" or "illegalValue" based on the entered value in these numeric fields. The code which sets these classes replaces the already present classes for that field with the above mentioned classes.
Here is the code which is responsible for the following behavior:
The code should add these classes and keep the already present classes intact.
Steps to Reproduce:
- Create a numeric concept.
- Add it using an obs tag in an htmlform.
- Also add a custom css class to the obs tag.
- Once you enter the value in the field from the browser, the checkNumber() sets the class for the input field to "legalValue" or "IllegalValue" i.e. it overrides the already present class created in step 3.