Repository navigation
[combobox][autocomplete] Document open requirement for the inline prop - #5069
Merged
Merged
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,180.20 ms -1.44 ms(-0.1%) | Renders: 78 (+0)
12 tests within noise — details Metric alarms
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
atomiks
marked this pull request as ready for review
June 18, 2026 04:11
atomiks
requested review from
aarongarciah,
colmtuite,
flaviendelangle,
jjenzz and
michaldudak
as code owners
June 18, 2026 04:11
open requirement for the inline propopen requirement for the inline prop
michaldudak
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #3966
What
Expands the JSDoc for the
inlineprop onCombobox.Root(andAutocomplete.Root, which sharesAriaCombobox) to document theopencontrol contract.The previous description was a single line — "Whether the list is rendered inline without using the popup." — which left out the most important usage detail: once
inlineis set, the component no longer controls the list's visibility, soopenmust be supplied for the list to be considered visible. This is exactly the confusion raised in #3966 ("you would have to pass inopenas true, for selection through keyboard to work correctly wheninline. Is this expected behavior?").New JSDoc:
Why
With
inline, the floating layer is forced open (open: inline ? true : open) so the list always renders, but the state-machineopenis kept "real" so a surrounding container can drive the open/close lifecycle. Interactions like selecting an item still callsetOpen(false), so leavingopenuncontrolled lets the internal open state drift out of sync with the permanently-visible list. The two correct patterns are:open(<Combobox.Root inline open>).open/onOpenChangeto the Dialog's state, so the reset-on-close lifecycle fires when the dialog closes.Docs-only / JSDoc change — no behavior change. Generated
types.mdfor combobox and autocomplete were refreshed viapnpm docs:api.