提交 7cf26c6f 编写于 作者: Q qiang

fix: 修复 iOS14 输入框禁用状态可以获取焦点的问题(导致取消禁用时无法弹出键盘) question/110491

上级 182141b6
......@@ -34,6 +34,7 @@
@compositionend="_onComposition"
@keyup.enter.stop="_onKeyup"
>
<!-- fix: 禁止 readonly 状态获取焦点 -->
<input
v-if="disabled && fixColor"
ref="input"
......@@ -44,6 +45,7 @@
:maxlength="maxlength"
:step="step"
class="uni-input-input"
@focus="$event=>$event.target.blur()"
>
</div>
</uni-input>
......
......@@ -48,6 +48,7 @@
@keyup.enter="_onKeyUpEnter"
@keydown.enter="_onKeyDownEnter"
/>
<!-- fix: 禁止 readonly 状态获取焦点 -->
<textarea
v-if="disabled && fixColor"
ref="textarea"
......@@ -58,6 +59,7 @@
:class="{ 'uni-textarea-textarea-fix-margin': fixMargin }"
:style="{ 'overflow-y': autoHeight ? 'hidden' : 'auto' }"
class="uni-textarea-textarea"
@focus="$event=>$event.target.blur()"
/>
</div>
</uni-textarea>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册