Skip to content

Commit ff59403

Browse files
author
xuqingkai
committed
fix: 🐛 修复Input和Textarea设置为readonly时在部分iOS手机可以点击聚焦的问题
Closes: #533
1 parent f4c751d commit ff59403

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/uni_modules/wot-design-uni/components/wd-input/wd-input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:password="showPassword && !isPwdVisible"
2929
v-model="inputValue"
3030
:placeholder="placeholderValue"
31-
:disabled="disabled"
31+
:disabled="disabled || readonly"
3232
:maxlength="maxlength"
3333
:focus="focused"
3434
:confirm-type="confirmType"

src/uni_modules/wot-design-uni/components/wd-textarea/wd-textarea.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
v-model="inputValue"
1919
:show-count="false"
2020
:placeholder="placeholderValue"
21-
:disabled="disabled"
21+
:disabled="disabled || readonly"
2222
:maxlength="maxlength"
2323
:focus="focused"
2424
:auto-focus="autoFocus"

0 commit comments

Comments
 (0)