-
-
Notifications
You must be signed in to change notification settings - Fork 370
Closed
Labels
component: autocompleteChanges related to the autocomplete component.Changes related to the autocomplete component.docsImprovements or additions to the documentation.Improvements or additions to the documentation.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Bug report
Current behavior
Autocomplete.Root behaves as if openOnInputClick defaults to false.
base-ui/packages/react/src/autocomplete/root/AutocompleteRoot.tsx
Lines 33 to 37 in 65c2d3a
| export function AutocompleteRoot<ItemValue>( | |
| props: AutocompleteRoot.Props<ItemValue>, | |
| ): React.JSX.Element { | |
| const { | |
| openOnInputClick = false, |
The documentation says the default is true.
base-ui/docs/reference/generated/autocomplete-root.json
Lines 135 to 137 in 65c2d3a
| "openOnInputClick": { | |
| "type": "boolean", | |
| "default": "true", |
Expected behavior
The behavior should match the documentation, whichever the correct default is.
Reproducible example
The main example on the docs site already shows this behavior.
Base UI version
1.1.0
Which browser are you using?
Chrome
Which OS are you using?
Mac OS
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: autocompleteChanges related to the autocomplete component.Changes related to the autocomplete component.docsImprovements or additions to the documentation.Improvements or additions to the documentation.type: bugIt doesn't behave as expected.It doesn't behave as expected.