-
Notifications
You must be signed in to change notification settings - Fork 0
fix(multi-select): prevent double-filtering in search #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a double-filtering bug in the multi-select component's search functionality. The component implements custom filtering logic through filteredOptions that filters based on searchValue, but the Command component was also applying its own filtering on top of the already-filtered results.
- Added
shouldFilter={false}prop to the Command component to disable its built-in filtering
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kguzek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
działa, ale tak jak pisał @TWQS w zalinkowanym issue nie ma już empty indicatora. wypróbuj proszę jego sugestię albo coś innego.
9eb1ab4 to
ae556dc
Compare
kguzek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ae556dc to
86c10b2
Compare
kguzek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu się tyle zadziało że nawet nie wiem od czego zacząć. jesteś w stanie uzasadnić tą ogromną ilość zmian w stosunku do poprzedniego rozwiązania?
86c10b2 to
34a3027
Compare
34a3027 to
068b257
Compare


sersavan/shadcn-multi-select-component#73
Resolves #129