-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat(Select): Support disabling individual items #1493
Conversation
🦋 Changeset detectedLatest commit: 0049174 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 |
911c40d
to
42a91f7
Compare
42a91f7
to
31d8c13
Compare
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.
Can we add an example with multiple disabled items? Can we also add some disabled items to the Multi example? Also, we need unit tests for multi select.
What happens if initialSelectedItem
/initialSelectedItems
is an item that is disabled? What if it's initially selected + disabled + isClearable is on?
31d8c13
to
48b4fa8
Compare
I was able to select disabled items: |
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.
A change somewhere here made us lose the focus back on the select input after isClearable X is pressed like we currently have: https://storybook-preview-dev--upbeat-sinoussi-f675aa.netlify.app/?path=/story/select--default&args=isClearable:true
packages/react-magma-dom/src/components/Select/Select.stories.tsx
Outdated
Show resolved
Hide resolved
48b4fa8
to
c2b8af1
Compare
c2b8af1
to
7244c63
Compare
I wasn't able to reproduce this bug but i added more checks anyway |
89eb6e1
to
595f69c
Compare
595f69c
to
bcc3d6d
Compare
Issues:
|
bcc3d6d
to
1e6333a
Compare
e8c5b20
to
0049174
Compare
Issue: #1217
What I did
Screenshots:
Checklist
How to test
check behavior in storybooks and in docs under api/select#disabled_items