Skip to content

Commit

Permalink
Revert "fix(VTextField): remain placeholder after values selected (#1…
Browse files Browse the repository at this point in the history
…6565)"

This reverts commit 33cc351.

fixes #17039
reopens #16493, #16519
  • Loading branch information
KaelWD committed Apr 4, 2023
1 parent 9273bdb commit 5ac0fa9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/vuetify/src/components/VTextField/VTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ export const VTextField = genericComponent<Omit<VInputSlots & VFieldSlots, 'defa
default: ({
props: { class: fieldClass, ...slotProps },
}) => {
const placeholder = computed(() => {
return ((props.persistentPlaceholder || isFocused.value) && !isDirty.value) ? props.placeholder : ''
})

const inputNode = (
<input
ref={ inputRef }
Expand All @@ -224,7 +220,7 @@ export const VTextField = genericComponent<Omit<VInputSlots & VFieldSlots, 'defa
readonly={ isReadonly.value }
disabled={ isDisabled.value }
name={ props.name }
placeholder={ placeholder.value }
placeholder={ props.placeholder }
size={ 1 }
type={ props.type }
onFocus={ onFocus }
Expand Down

0 comments on commit 5ac0fa9

Please sign in to comment.