From b4d37145aeb3e698c2484d160c5a1a82a7bfda06 Mon Sep 17 00:00:00 2001 From: mengxiong10 <15623530290@163.com> Date: Mon, 25 Mar 2019 19:26:35 +0800 Subject: [PATCH] chore: use the function replace expression --- src/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.vue b/src/index.vue index b407003..af71c17 100644 --- a/src/index.vue +++ b/src/index.vue @@ -527,7 +527,7 @@ export default { }, handleFocus (event) { if (!this.popupVisible) { - this.popupVisible = true + this.showPopup() } this.$emit('focus', event) }, @@ -536,10 +536,10 @@ export default { // Tab 9 or Enter 13 if (keyCode === 9 || keyCode === 13) { // ie emit the watch before the change event + event.stopPropagation() this.handleChange() this.userInput = null - this.popupVisible = false - event.stopPropagation() + this.closePopup() } }, handleInput (event) {