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

Disable a suggest #3270

Closed
colinmegill opened this issue Jan 7, 2019 · 3 comments · Fixed by #3292
Closed

Disable a suggest #3270

colinmegill opened this issue Jan 7, 2019 · 3 comments · Fixed by #3292

Comments

@colinmegill
Copy link

Environment

  • Package version(s):

React 16.6.0
Blueprint 3.8.0
Blueprint select 3.2.1

  • Browser and OS versions:

MacOS Mojave, Chrome 70

Question

Probably missing something, but I'm not sure of the best way to disable a suggest.

Looking here: https://blueprintjs.com/docs/#select/suggest

Happy path? Or, if not, this is a feature request.

@colinmegill
Copy link
Author

Fwiw, this does work:

itemDisabled={condition ? () => true : () => false}

But I wouldn't describe it as the least surprising thing from either the programmer or user perspective, so inquiring :)

@giladgray
Copy link
Contributor

giladgray commented Jan 7, 2019

related to #2467. not trivially supported. @colinmegill you can use itemDisabled for disabling items or play with inputProps.disabled.

@colinmegill
Copy link
Author

colinmegill commented Jan 18, 2019 via email

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 a pull request may close this issue.

2 participants