N
N
Nikita2020-11-28 19:21:16
React
Nikita, 2020-11-28 19:21:16

React-select-search how to make if nothing was found, the entered value remains?

link to npm

Demo from the developer here

Now, if there is no suitable value in options, with onBlur input, the value inside it is erased. How can I prevent onBlur from erasing the input?

I did not see anything suitable in the documentation under the heading "Configuration" (I do not exclude my blindness), I also could not figure out where and what to tweak in the source codes.

I hope for your help, or at least an attempt to help, I will be grateful, thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gimir, 2020-11-29
@Gimir

I would rather use React-select , there you can create your own option if there is no suitable one in the list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question