Financial year start bugfix solved

This commit is contained in:
Burak Civan
2021-06-07 14:42:36 +03:00
parent 95b8a64f1e
commit 4e0538a5d7
3 changed files with 24 additions and 2 deletions

View File

@ -4,12 +4,14 @@
:class="[
{'readonly': readonly},
{'disabled': disabled},
{'hidden-year': hiddenYear},
formClasses
]"
:footer-error="formError"
:prependIcon="icon"
:readonly="readonly"
:disabled="disabled"
@focus="focus"
>
<flat-picker slot-scope="{focus, blur}"
:name="dataName"
@ -93,6 +95,9 @@ export default {
locale: {
type: String,
default: 'en',
},
hiddenYear: {
type: [Boolean, String]
}
},
@ -125,6 +130,14 @@ export default {
this.$emit('interface', this.real_model);
this.$emit('change', this.real_model);
},
focus() {
if (this.hiddenYear) {
document.querySelector('.numInputWrapper').classList.add('hidden-year-flatpickr');
} else {
document.querySelector('.numInputWrapper').classList.remove('hidden-year-flatpickr');
}
}
},
@ -135,3 +148,9 @@ export default {
}
}
</script>
<style>
.hidden-year-flatpickr {
display: none !important;
}
</style>