Skip to content

Commit 51bc530

Browse files
committed
fix: input not update when set undefined
1 parent e8d91fb commit 51bc530

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/input/Input.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ export default defineComponent({
138138
watch(
139139
() => props.value,
140140
() => {
141-
if (props.value !== undefined) {
142-
stateValue.value = props.value;
143-
}
141+
stateValue.value = props.value;
144142
},
145143
);
146144
watch(

0 commit comments

Comments
 (0)