Skip to content

[autocomplete] Documented default for openOnInputClick doesn't match behavior #4006

@mirka

Description

@mirka

Bug report

Current behavior

Autocomplete.Root behaves as if openOnInputClick defaults to false.

export function AutocompleteRoot<ItemValue>(
props: AutocompleteRoot.Props<ItemValue>,
): React.JSX.Element {
const {
openOnInputClick = false,

The documentation says the default is true.

"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: autocompleteChanges related to the autocomplete component.docsImprovements or additions to the documentation.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions