Skip to content

Commit 3ac6d5b

Browse files
committed
feat(datepicker): Emit input event on valid typedDate
1 parent 889c4e9 commit 3ac6d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Datepicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ export default {
510510
this.latestValidTypedDate,
511511
)
512512
this.setPageDate(date)
513+
this.$emit('input', date)
513514
514515
if (this.isPageChange(originalPageDate)) {
515516
this.handlePageChange({
@@ -669,7 +670,6 @@ export default {
669670
this.setValue(date)
670671
this.reviewFocus()
671672
this.$emit('selected', date)
672-
this.$emit('input', date)
673673
674674
if (this.isOpen) {
675675
this.close()

0 commit comments

Comments
 (0)