mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-23 17:00:35 +03:00
fix: input event work with slot input
This commit is contained in:
+1
-1
@@ -426,7 +426,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleInputInput(evt) {
|
handleInputInput(evt) {
|
||||||
this.userInput = evt.target.value;
|
this.userInput = typeof evt === 'string' ? evt : evt.target.value;
|
||||||
},
|
},
|
||||||
handleInputKeydown(evt) {
|
handleInputKeydown(evt) {
|
||||||
const { keyCode } = evt;
|
const { keyCode } = evt;
|
||||||
|
|||||||
Reference in New Issue
Block a user