React-select: Is there a way to use the dropdown without search?

Created on 27 Aug 2015  路  3Comments  路  Source: JedWatson/react-select

I would like to know if there's a way disable search but still enable the dropdown. In particular this is useful on mobile- I want the keyboard NOT to appear when the box is focused, and for the user to choose from options with no search / autocomplete.

The disabled = true and searchable = false options don't have the desired effect, is there a way to do this?

Most helpful comment

The prop is now isSearchable in React-select v2 for anybody who is interested.
So, isSearchable={false} would do it.

All 3 comments

Setting searchable={false} should do what you're describing, you shouldn't need to set disabled. (Disabled actually disables the whole control, so you can't change the selection at all)

If that doesn't do what you need, can you explain what it does differently than expected/needed?

This does work, I had dependency issues causing an error, thanks!

The prop is now isSearchable in React-select v2 for anybody who is interested.
So, isSearchable={false} would do it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AchinthaReemal picture AchinthaReemal  路  3Comments

ericj17 picture ericj17  路  3Comments

pablote picture pablote  路  3Comments

batusai513 picture batusai513  路  3Comments

mbonaci picture mbonaci  路  3Comments