Skip to content

Commit 0937f4f

Browse files
committed
fix(VDateInput): if invalid input, keep current value
fixes #21245
1 parent 49be784 commit 0937f4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vuetify/src/labs/VDateInput/VDateInput.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ export const VDateInput = genericComponent<VDateInputSlots>()({
197197
return
198198
}
199199

200-
model.value = adapter.isValid(target.value) ? target.value : null
200+
if (adapter.isValid(userInput)) {
201+
model.value = userInput
202+
}
201203
}
202204

203205
useRender(() => {

0 commit comments

Comments
 (0)