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

MindRave picture MindRave  路  3Comments

x-yuri picture x-yuri  路  3Comments

coder-guy22296 picture coder-guy22296  路  3Comments

brunocramos picture brunocramos  路  3Comments

geraldfullam picture geraldfullam  路  3Comments