Skip to content

Commit

Permalink
fix: input event work with slot input (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Nov 26, 2020
1 parent b7cbc0d commit ef1a748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ export default {
}
},
handleInputInput(evt) {
this.userInput = evt.target.value;
// slot input v-model
this.userInput = typeof evt === 'string' ? evt : evt.target.value;
},
handleInputKeydown(evt) {
const { keyCode } = evt;
Expand Down

0 comments on commit ef1a748

Please sign in to comment.