Merge pull request #334 from Safelite/feature/digital/SSR-319.2
Devyn requested they be able to input text on date fields
This commit is contained in:
commit
364cf67564
1 changed files with 0 additions and 24 deletions
|
|
@ -16,7 +16,6 @@
|
|||
class="form-control"
|
||||
v-model.trim="value"
|
||||
v-maska="mask"
|
||||
@keydown="preventDateInput"
|
||||
:type="type"
|
||||
:ref="inputId"
|
||||
:id="inputId"
|
||||
|
|
@ -138,17 +137,6 @@ export default {
|
|||
this.$emit("update:modelValue", value);
|
||||
|
||||
},
|
||||
|
||||
preventDateInput(evt) {
|
||||
if (this.type === "date") {
|
||||
if (/\d/.test(evt.key)) {
|
||||
evt.stopPropagation();
|
||||
evt.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
computed: {
|
||||
questionText() {
|
||||
|
|
@ -203,18 +191,6 @@ export default {
|
|||
|
||||
<style lang="scss">
|
||||
|
||||
input[type="date"]:invalid::-webkit-datetime-edit-year-field,
|
||||
input[type="date"]:invalid::-webkit-datetime-edit-month-field,
|
||||
input[type="date"]:invalid::-webkit-datetime-edit-day-field,
|
||||
input[type="date"]:invalid::-webkit-datetime-edit-text
|
||||
{
|
||||
color: white;
|
||||
background-color: white;
|
||||
::placeholder {
|
||||
content: " "
|
||||
}
|
||||
}
|
||||
|
||||
input[type="date"]::-webkit-inner-spin-button{
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue