Repository navigation
Conversation
`onSearchChange` reports the search text as it changes, so consumers can load options from a backend while the user types. Options added during a search now match right away: the searchable text is recaptured when the options change while a search is active, not only when a search starts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 61ea59c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Storybook Preview Deployed✅ Preview URL: https://click-mya2i9rku-clickhouse.vercel.app Built from commit: |
Contributor
Chromatic Storybook
Built from commit: Statuses as of the end of the run. The build link shows the live review state. |
This branch has not been deployed
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.
Description
Selectcan't load its options from a backend while the user types: the search text stays inside the component, and options that arrive during a search never match. This PR fixes both.onSearchChange?: (search: string) => voidprop onSelect,MultiSelectandCheckboxMultiSelect. It's called whenever the search text changes, including when it's cleared or reset on close.SearchWithRemoteOptionsstory: typing "berry" loads matching fruits after a short delay.Links and tickets
Use case: picking one of thousands of message-queue topics, where only the first part of the list is loaded up front and the rest comes from a backend search.
Good to know
main, andonSearchChangeon typing, clearing, closing and no change), plus the full pre-PR suite (typecheck,lint,format,circular-dependency:check,test,build,storybook:build).yarn test:visual, needs Docker), the Storybook Accessibility panel, and trying the new story by hand.Checklist
Contribution
🤖 Generated with Claude Code