SSR 319
Prevent data entry in date field
This commit is contained in:
parent
fd279f6a52
commit
30ec63f173
1 changed files with 8 additions and 1 deletions
|
|
@ -25,6 +25,8 @@
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
:aria-required="isRequired"
|
:aria-required="isRequired"
|
||||||
:aria-label="questionText"
|
:aria-label="questionText"
|
||||||
|
v-on:keydown.prevent
|
||||||
|
v-on:focus="blurInput"
|
||||||
:min="min"
|
:min="min"
|
||||||
:max="max"
|
:max="max"
|
||||||
required
|
required
|
||||||
|
|
@ -136,7 +138,12 @@ export default {
|
||||||
|
|
||||||
this.$emit("update:modelValue", value);
|
this.$emit("update:modelValue", value);
|
||||||
|
|
||||||
}
|
},
|
||||||
|
|
||||||
|
blurInput() {
|
||||||
|
this.$refs.dateOfLossField.blur();
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
questionText() {
|
questionText() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue