-
Notifications
You must be signed in to change notification settings - Fork 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
Fix/2507 dependent dropdowns #2511
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 1fa7891 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 |
✅ Deploy Preview for next-docs-evidence ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for evidence-test-env ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for evidence-development-workspace ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/ui/core-components/src/lib/atoms/inputs/dropdown/Dropdown.svelte
Show resolved
Hide resolved
packages/ui/core-components/src/lib/atoms/inputs/dropdown/dropdownOptionStore.js
Show resolved
Hide resolved
packages/ui/core-components/src/lib/atoms/inputs/dropdown/stories/Dropdown.stories.svelte
Outdated
Show resolved
Hide resolved
packages/ui/core-components/src/lib/atoms/inputs/dropdown/Dropdown.svelte
Show resolved
Hide resolved
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.
Seems good
Just noticed that this PR has caused a regression. Dropdowns no longer select the first option automatically. For example: https://www.chromatic.com/test?appId=645d58d2e049d64800e0ee15&id=66eb3164c2b55e6f7a8c8026 There are several other Dropdown stories with the same kind of difference I'm going to revert this PR and we can revisit Should be easier to prevent future regressions with Chromatic (nearly) all cleaned up over here: #2436 |
Description
Fixes #2507
Fixes dropdown selection not updating when the filtered list changes. Previously, selected items would remain even if the filtered list became empty. Dropdown now updates selections based on available data.
Screen.Recording.2024-09-06.152709.mp4
Checklist
I have added to the docs where applicableI have added to the VS Code extension where applicable