Issue #395 - Update Validation for Inputs that should be numeric to resolve...
Issue #395 (closed) - Update Validation for Inputs that should be numeric to resolve browser compatibility issues
The issue we are facing is related to how different browsers handle the input[type="number"] field and how they enforce restrictions for numbers. Chrome & Firefox handle validation for these fields differently. When type="number" is set in an input field, the browser automatically restricts input to numeric characters only. As a result, if you try typing a string (e.g., letters), the input won't trigger the onChange event as it does for valid numbers.
Workaround: made the input as text and added validation to ensure the input is correct The validation removes any :
- letters
- , or decimals that cause Bad Requests
- Allowed decimal values only when setting last days/weeks/months
Merge request reports
Activity
requested review from @mcfarhat
assigned to @mcfarhat
added 4 commits
-
9402df68...10042991 - 3 commits from branch
develop
- 6421508a - Issue #395 (closed) - Update Validation for Inputs that should be numeric to resolve...
-
9402df68...10042991 - 3 commits from branch