Skip to content

Commit ef1a748

Browse files
committed
fix: input event work with slot input (#546)
1 parent b7cbc0d commit ef1a748

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/date-picker.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ export default {
406406
}
407407
},
408408
handleInputInput(evt) {
409-
this.userInput = evt.target.value;
409+
// slot input v-model
410+
this.userInput = typeof evt === 'string' ? evt : evt.target.value;
410411
},
411412
handleInputKeydown(evt) {
412413
const { keyCode } = evt;

0 commit comments

Comments
 (0)