提交 14f5066e 编写于 作者: Q qiang

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

上级 b89b0fc4
......@@ -33,6 +33,7 @@
@compositionend="_onComposition"
@keyup.stop="_onKeyup"
>
<!-- fix: 禁止 readonly 状态获取焦点 -->
<input
v-if="disabled && fixColor"
ref="input"
......@@ -43,6 +44,7 @@
:maxlength="maxlength"
:step="step"
class="uni-input-input"
@focus="$event=>$event.target.blur()"
>
</div>
</uni-input>
......
......@@ -45,6 +45,7 @@
@blur="_onBlur"
@touchstart.passive="_onTouchstart"
/>
<!-- fix: 禁止 readonly 状态获取焦点 -->
<textarea
v-if="disabled && fixColor"
ref="textarea"
......@@ -55,6 +56,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.
先完成此消息的编辑!
想要评论请 注册