[Bug Report] Field组件readonly状态下文字不能选中复制
Author: wiexinCreated Aug 18, 2026Updated Aug 18, 2026
Labelsbug: need confirm
重现链接
/
Vant 版本
4.9.22
描述一下你遇到的问题。
Field组件readonly状态下,onFocus 函数中直接触发了blur事件 导致文字不能选中复制 const onFocus = (event: Event) => { state.focused = true; emit('focus', event);
// readonly not work in legacy mobile safari
const readonly = getProp('readonly');
if (readonly) {
blur();
}
};重现步骤
1、Field组件 readonly
设备/浏览器
No response
Source: youzan/vant