Do not show panel when disabled

pull/12/head
cagataycivici 2019-05-21 14:30:22 +03:00
parent 4ff5e1b75b
commit 0d78ef372e
1 changed files with 8 additions and 6 deletions

View File

@ -618,12 +618,14 @@ export default {
}
},
onButtonClick() {
if (!this.overlayVisible) {
this.$refs.input.$el.focus();
this.overlayVisible = true;
}
else {
this.overlayVisible = false;
if (this.isEnabled()) {
if (!this.overlayVisible) {
this.$refs.input.$el.focus();
this.overlayVisible = true;
}
else {
this.overlayVisible = false;
}
}
},
isDateDisabled(day, month, year) {