diff --git a/packages/vant/src/field/Field.tsx b/packages/vant/src/field/Field.tsx index dfc34c445..d2f617f70 100644 --- a/packages/vant/src/field/Field.tsx +++ b/packages/vant/src/field/Field.tsx @@ -305,7 +305,9 @@ export default defineComponent({ if (inputRef.value && inputRef.value.value !== value) { const { selectionStart, selectionEnd } = inputRef.value; inputRef.value.value = value; - inputRef.value.setSelectionRange(selectionStart, selectionEnd); + if (state.focused) { + inputRef.value.setSelectionRange(selectionStart, selectionEnd); + } } if (value !== props.modelValue) {