Skip to content

Commit 3c9b2e3

Browse files
committed
fix: set is dirty false if empty string to show the placeholder
1 parent eeb9d14 commit 3c9b2e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vuetify/src/components/VCombobox/VCombobox.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ export const VCombobox = genericComponent<new <
477477
slots['append-item'] ||
478478
slots['no-data']
479479
)
480-
const isDirty = model.value.length > 0
480+
const isEmptyString = model.value.length === 1 && model.value[0].value === ''
481+
const isDirty = model.value.length > 0 && !isEmptyString
481482
const textFieldProps = VTextField.filterProps(props)
482483

483484
return (

0 commit comments

Comments
 (0)