-
Notifications
You must be signed in to change notification settings - Fork 45
fix: FORMS-1451 Restrict form schedule late submission period to integers only #1700
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
fix: FORMS-1451 Restrict form schedule late submission period to integers only #1700
Conversation
Release 980d252 deployed at https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-1700 |
t('trans.formSettings.valueMustBeNumber'), | ||
]); | ||
const scheduleTypedRules = ref([ | ||
(v) => !!v || t('trans.formSettings.selectAnOptions'), | ||
]); | ||
|
||
const handleIntegerInput = (event) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you try using https://vuetifyjs.com/en/components/number-inputs/?
I think that could do what you need?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I investigated this approach and found there are compatibility concerns v-number-input is currently an experimental component in Vuetify Labs so keeping the current implementation
…ecimal-values-in-fields
…ecimal-values-in-fields
…ecimal-values-in-fields
|
Description
Form Submission Schedule allow decimal values for some fields
Description
The form submission schedule has a couple of places where it takes positive integers as values. However, the validation allows values with up to two decimal points.
For some reason if you enter three decimal places then the validation fails.
Expected behaviour: can only enter integer values greater than or equal to 1, and . cannot be entered.
Updated validation regex
Limits range to 1-999 previously it is 6 digits
Updated error message
Added translations
Decimal points can no longer be typed in the field
Type of Change
fix (a bug fix)
Checklist
Further comments