Skip to content

Commit edecf70

Browse files
author
Benjamin Bädorf
committed
Fixed 'opened' event emit
1 parent 0b93940 commit edecf70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Datepicker.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ export default {
334334
return this.close()
335335
}
336336
this.setInitialView()
337+
if (!this.isInline) {
338+
this.$emit('opened')
339+
}
337340
},
338341
setInitialView () {
339342
const initialView = this.computedInitialView
@@ -368,7 +371,6 @@ export default {
368371
this.close()
369372
this.showDayView = true
370373
if (!this.isInline) {
371-
this.$emit('opened')
372374
document.addEventListener('click', this.clickOutside, false)
373375
}
374376
},

0 commit comments

Comments
 (0)