feat(multi-select): introduce filterable mode #716
feat(multi-select): introduce filterable mode #716
Conversation
Deploy preview created for Built with commit: 2c27977f6011435aed5fb76d10f4d1ab9d3f099a |
Deploy preview created for Built with commit: 2c27977f6011435aed5fb76d10f4d1ab9d3f099a |
Deploy preview created for Built with commit: 2c27977f6011435aed5fb76d10f4d1ab9d3f099a |
Deploy preview created for Built with commit: 2c27977f6011435aed5fb76d10f4d1ab9d3f099a |
Thank you @IgnacioBecerra! It looks like some of the unit tests are failing: |
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.
it looks like events continue to propagate after typing. In this screen recording you can see the storybook UI being toggled as I type T, and the multiselect menu does not stay open and filter while typing 1 for example
Screen.Recording.2021-10-26.at.9.26.54.AM.mov
@emyarod Seems like this can also be seen in the ComboBox component, seems like the |
@IgnacioBecerra I think we should be able to ignore storybook shortcuts given that the core Carbon filterable multiselect story doesn't run into this issue right? I agree on opening a separate issue for the existing ComboBox web component, but for a new variant story I think we should resolve before merging if we can, what do you think? interested in hearing others' opinions as well |
@emyarod I noticed that I opened a draft PR showing this behavior, and you can see the files are carbon ( heh ) copies of each other: |
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.
should we also add the stories to the React/Vue/Angular storybooks?
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.
one thing with Space selection, when there is an active cursor in the input we end up with some possibly unexpected behavior (the menu closes vs when no cursor is active)
Screen.Recording.2021-10-29.at.10.04.49.AM.mov
it looks like this behavior is present in the core component so we may need further guidance on what the expected behavior should be
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!
@IgnacioBecerra @jeffchew seems like we need to add a new snapshot, right? |
Related Ticket(s)
#683
Description
Introduced a filterable variant of the Multi Select component that works as a ComboBox that filters and is able to select multiple options.
Changelog
New
filterable
variant forbx-multi-select