Red Baron
Red Baron

Reputation: 7642

Is it possible in React Select to select something but keep the input blank?

so I'm using React Select to select a list of places but I want to render them out beneath the select box as per my designs

so I'm selecting with React Select then adding to my state and mapping over. all is well.

the problem is, I don't want the selected thing to be added to the select box, I just want to leave it blank indicating that another value can be selected. I know it isn't really designed for this but was wondering if there was maybe a work around for it?

Upvotes: 0

Views: 306

Answers (1)

Red Baron
Red Baron

Reputation: 7642

you can pass value={null} to <Select value={null} and it wont set a value if anyone ever needs this in the future :)

Upvotes: 1

Related Questions