We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
handleClickOutside()
1 parent 95a8bfe commit 0094f30Copy full SHA for 0094f30
src/components/Datepicker.vue
@@ -525,14 +525,21 @@ export default {
525
return
526
}
527
528
+ const closeByClickOutside = () => {
529
+ this.isClickOutside = true
530
+ this.close()
531
+ }
532
+
533
if (!this.globalDatepickerId) {
- this.closeByClickOutside()
534
+ closeByClickOutside()
535
536
537
538
if (document.datepickerId.toString() === this.datepickerId) {
539
this.$nextTick(() => {
- this.closeIfNotFocused()
540
+ if (!this.isActive) {
541
542
543
})
544
545
},
0 commit comments