Skip to content

Commit 14c88df

Browse files
authored
fix(VTextField): don't try to re-focus input on focus (#21722)
fixes #21716 fixes #21626 closes #21717
1 parent b8c52c0 commit 14c88df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vuetify/src/components/VTextField/VTextField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const VTextField = genericComponent<VTextFieldSlots>()({
105105

106106
nextTick(() => {
107107
if (inputRef.value !== document.activeElement) {
108-
nextTick(() => inputRef.value?.focus())
108+
inputRef.value?.focus()
109109
}
110110
})
111111
}
@@ -221,7 +221,7 @@ export const VTextField = genericComponent<VTextFieldSlots>()({
221221
placeholder={ props.placeholder }
222222
size={ 1 }
223223
type={ props.type }
224-
onFocus={ onFocus }
224+
onFocus={ focus }
225225
onBlur={ blur }
226226
{ ...slotProps }
227227
{ ...inputAttrs }

0 commit comments

Comments
 (0)