From 801de754a2d7823667c4c69b93a367fd74a6673f Mon Sep 17 00:00:00 2001 From: supergaojian <402853745@qq.com> Date: Thu, 21 Feb 2019 17:21:25 +0800 Subject: [PATCH] fix(input-item): fix input-item with virtualKeyboard in vue@2.6 bug fix #324 --- components/input-item/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/input-item/index.vue b/components/input-item/index.vue index 74d91df36..d1f690b3a 100644 --- a/components/input-item/index.vue +++ b/components/input-item/index.vue @@ -412,9 +412,9 @@ export default { $_focusFakeInput() { this.isInputFocus = true - this.$nextTick(() => { + setTimeout(() => { this.$_addBlurListener() - }) + }, 0) }, $_blurFakeInput() { this.isInputFocus = false @@ -674,7 +674,7 @@ export default { .md-input-item-input::-webkit-input-placeholder font-size 60px line-height 100px - + &.is-error .md-field-item-content hairline(bottom, input-item-color-error, 0, 4px)