Skip to content
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

Create-able MultiSelect #1710

Closed
dixitk13 opened this issue Oct 12, 2017 · 7 comments
Closed

Create-able MultiSelect #1710

dixitk13 opened this issue Oct 12, 2017 · 7 comments

Comments

@dixitk13
Copy link

MultiSelect with Create-able options.

Currently MultiSelect can select from a given list.

Would like an option where given a prop(say allowCreate), it allows to create a new Tag from a user which doesn't exist in the predefined list.

@llorca
Copy link
Contributor

llorca commented Oct 13, 2017

Haven't tried it myself -- maybe use the noResults prop to render a menu item that adds the query to your items

@dmackerman
Copy link
Contributor

dmackerman commented May 2, 2018

We've done this ourselves, it's pretty straightforward. Like @llorca said, just use the noResults prop to render a MenuItem that does what you need.

create

@llorca
Copy link
Contributor

llorca commented May 2, 2018

easy enough. thanks for the follow up here @dmackerman 👌

@llorca llorca closed this as completed May 2, 2018
@shuyangli
Copy link
Contributor

@giladgray Can we reopen? The above workaround doesn't clear the input text in the MultiSelect, which makes a subpar experience as the user needs to delete the text themselves to select something else

@adidahiya adidahiya reopened this Jan 8, 2019
@giladgray
Copy link
Contributor

@shuyangli you can easily control the query to clear it as needed.

@shuyangli
Copy link
Contributor

It'd be great if this could be done in an unmanaged way (similar to ReactSelect)

@dixitk13
Copy link
Author

dixitk13 commented Jan 9, 2019

+1 on this @giladgray @shuyangli . I have a random react-select in my application which is styled with targetted styles to achieve the same. Would be great if blueprintJS did this in an un-managed way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants