mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-22 23:40:37 +03:00
chore: use the function replace expression
This commit is contained in:
+3
-3
@@ -527,7 +527,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleFocus (event) {
|
handleFocus (event) {
|
||||||
if (!this.popupVisible) {
|
if (!this.popupVisible) {
|
||||||
this.popupVisible = true
|
this.showPopup()
|
||||||
}
|
}
|
||||||
this.$emit('focus', event)
|
this.$emit('focus', event)
|
||||||
},
|
},
|
||||||
@@ -536,10 +536,10 @@ export default {
|
|||||||
// Tab 9 or Enter 13
|
// Tab 9 or Enter 13
|
||||||
if (keyCode === 9 || keyCode === 13) {
|
if (keyCode === 9 || keyCode === 13) {
|
||||||
// ie emit the watch before the change event
|
// ie emit the watch before the change event
|
||||||
|
event.stopPropagation()
|
||||||
this.handleChange()
|
this.handleChange()
|
||||||
this.userInput = null
|
this.userInput = null
|
||||||
this.popupVisible = false
|
this.closePopup()
|
||||||
event.stopPropagation()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleInput (event) {
|
handleInput (event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user