-
-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Labels
component: fieldChanges related to the field component.Changes related to the field component.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Bug report
Current behavior
I am using the Field component and passing the autoFocus prop to the Field.Control. state.focused is false and data-focused is not present on the initial render.
Expected behavior
I expected state.focused to be true and data-focused to be present on the field elements.
Reproducible example
https://codesandbox.io/p/devbox/ts8md6
Steps to reproduce:
- Open the preview in a new tab https://ts8md6-3000.csb.app/
- Notice the
inputis focused, but the focus outline is not present
How it looks:
How it should look:
Base UI version
v1.0.0-beta.4
Which browser are you using?
Chrome
Which OS are you using?
Mac OS
Additional context
I suspect this may be related to server-side rendering. The reproduction of the issue is using SSR and Next.js, whereas this version is client-rendered and working as expected.
Metadata
Metadata
Assignees
Labels
component: fieldChanges related to the field component.Changes related to the field component.type: bugIt doesn't behave as expected.It doesn't behave as expected.