From 52fe03d81ce242a788c55fd22f4bd9578c6d55f5 Mon Sep 17 00:00:00 2001 From: Emad Date: Wed, 1 Feb 2023 14:49:30 +0330 Subject: [PATCH] fix(VTextField): remain placeholder after values selected fixes #16519 fixes #16493 Fix placeholder remains displayed when selecting items in components like VCombobox and VAutoComplete --- packages/vuetify/src/components/VTextField/VTextField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/components/VTextField/VTextField.tsx b/packages/vuetify/src/components/VTextField/VTextField.tsx index bf058624a5ed..88c23e8258d6 100644 --- a/packages/vuetify/src/components/VTextField/VTextField.tsx +++ b/packages/vuetify/src/components/VTextField/VTextField.tsx @@ -209,7 +209,7 @@ export const VTextField = genericComponent { readonly={ isReadonly.value } disabled={ isDisabled.value } name={ props.name } - placeholder={ props.placeholder } + placeholder={ isDirty.value ? '' : props.placeholder } size={ 1 } type={ props.type } onFocus={ onFocus }