mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-15 10:12:35 +03:00
fix: input event work with slot input (#546)
This commit is contained in:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user