Do not show panel when disabled
parent
4ff5e1b75b
commit
0d78ef372e
|
@ -618,6 +618,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onButtonClick() {
|
onButtonClick() {
|
||||||
|
if (this.isEnabled()) {
|
||||||
if (!this.overlayVisible) {
|
if (!this.overlayVisible) {
|
||||||
this.$refs.input.$el.focus();
|
this.$refs.input.$el.focus();
|
||||||
this.overlayVisible = true;
|
this.overlayVisible = true;
|
||||||
|
@ -625,6 +626,7 @@ export default {
|
||||||
else {
|
else {
|
||||||
this.overlayVisible = false;
|
this.overlayVisible = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
isDateDisabled(day, month, year) {
|
isDateDisabled(day, month, year) {
|
||||||
if (this.disabledDates) {
|
if (this.disabledDates) {
|
||||||
|
|
Loading…
Reference in New Issue