Skip to content

Commit 673fd47

Browse files
committed
fix(ComboBox): support autoFocus
1 parent 33e9a27 commit 673fd47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ export const ComboBox = forwardRef(function ComboBox<T extends object>(
327327
>
328328
<InputElement
329329
qa="Input"
330+
autoFocus={autoFocus}
331+
data-autofocus={autoFocus ? '' : undefined}
330332
{...mergeProps(inputProps, hoverProps, focusProps)}
331333
ref={inputRef}
332334
autoComplete={autoComplete}

0 commit comments

Comments
 (0)