Skip to content

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

Merged
merged 2 commits into from
Jan 6, 2020

Conversation

jilliankeenan
Copy link
Contributor

@jilliankeenan jilliankeenan requested a review from a team as a code owner January 3, 2020 17:24
Copy link
Contributor

@nmuldavin nmuldavin left a 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.


if (type !== MULTISELECT) {
this.closeAndFocusButton();
}
Copy link
Contributor

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?

Copy link
Contributor Author

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!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, thanks!

Copy link
Contributor

@nmuldavin nmuldavin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@vine77 vine77 merged commit 30c9d83 into puppetlabs:master Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants