2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-09 17:22:27 +03:00

fix: input event work with slot input

This commit is contained in:
mengxiong10
2020-11-26 10:54:28 +08:00
parent aaee1172a7
commit fb223b9d52
+1 -1
View File
@@ -426,7 +426,7 @@ export default {
}
},
handleInputInput(evt) {
this.userInput = evt.target.value;
this.userInput = typeof evt === 'string' ? evt : evt.target.value;
},
handleInputKeydown(evt) {
const { keyCode } = evt;