B
B
Boris the Animal2020-05-26 07:26:17
React
Boris the Animal, 2020-05-26 07:26:17

React Select (Creatable) component. How can I disable the drop down list when clicked?

https://react-select.com/creatable
I want to make the dropdown list with list items open only when clicking on the area marked in orange in the screenshot (arrow on the right). At the same time, when I clicked on the area where the value is displayed, you can write something there and add it, that is, the rest of the functionality will remain the same.

I have no idea how this can be done at all, what needs to be overridden or what options to pass.

5ecc99da47e1f803119251.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-05-26
@Casper-SC

This is not a difficult question, just always in such cases go to the props api page
https://react-select.com/props#select-props
There you will find the openMenuOnClick property, which is responsible for the behavior you mentioned.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question