fix: allow clicking on confirm for a date without requiring to click on another input field
This commit is contained in:
parent
c5c980e1b1
commit
138b06752f
1 changed files with 15 additions and 11 deletions
|
@ -219,12 +219,16 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
|
// Kind of dirty, but the timeout allows us to enter a time and click on "confirm" without
|
||||||
|
// having to click on another input field before it is actually used.
|
||||||
|
setTimeout(() => {
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$emit('close', this.changed)
|
this.$emit('close', this.changed)
|
||||||
if (this.changed) {
|
if (this.changed) {
|
||||||
this.changed = false
|
this.changed = false
|
||||||
this.$emit('close-on-change', this.changed)
|
this.$emit('close-on-change', this.changed)
|
||||||
}
|
}
|
||||||
|
}, 200)
|
||||||
},
|
},
|
||||||
setDate(date) {
|
setDate(date) {
|
||||||
if (this.date === null) {
|
if (this.date === null) {
|
||||||
|
|
Loading…
Reference in a new issue