-
Notifications
You must be signed in to change notification settings - Fork 27
Add multiselect functionality to select component #192
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
Conversation
jilliankeenan
commented
Jan 3, 2020
- https://tickets.puppetlabs.com/browse/PDS-333
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.
This is looking great! Thanks for putting in this work and for the thorough documentation. This is ready to go as far as I'm concerned pending removal of the stray console.log.
packages/react-components/source/react/library/select/Select.js
Outdated
Show resolved
Hide resolved
packages/react-components/source/react/library/select/Select.md
Outdated
Show resolved
Hide resolved
|
||
if (type !== MULTISELECT) { | ||
this.closeAndFocusButton(); | ||
} |
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.
I'm curious, what was the behavior you were trying to enable (or prevent) by adding this?
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.
I found that the select component with no type specified (if this is not in) it will not close the dropdown option list and therefore the user is able to select multiple options from the dropdown. This is acting as a catch-all to say if it isn't multi-select then close the drop down option list after one option from the list has been selected. Hope that makes sense!
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.
Interesting, thanks!
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.