-
Notifications
You must be signed in to change notification settings - Fork 65
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(component): adds grouping options to Select component #350
feat(component): adds grouping options to Select component #350
Conversation
Not sure why |
My guess is this is the |
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.
Looking good. Not sure why filter isn't working, will need to play with your branch.
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.
Here's some initial feedback. I'll let you fix the infinite rendering issue we discussed offline before providing some more.
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.
Looking good! One comment and a few 🍹 from me.
packages/big-design/src/components/List/GroupHeader/ListGroupHeader.tsx
Outdated
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.
Looks good to me! Great job, thanks for doing this one as well. 🙏
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.
Looks good on my end!
if ( | ||
!selectOptions.find( | ||
(option: SelectOption<T> | SelectAction) => 'value' in option && option.value === item.value, | ||
) | ||
) { |
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.
🍹🍹🍹
if ( | |
!selectOptions.find( | |
(option: SelectOption<T> | SelectAction) => 'value' in option && option.value === item.value, | |
) | |
) { | |
if (!selectOptions.find(option => 'value' in option && option.value === item.value)) { |
Similar to recently updated Dropdown component, adds ability to create groups in a Select component with labels.