Replies: 1 comment 2 replies
-
@SobhanAminnejad You can achieve this using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone
I am wondering if there is a solution to return a default value which is one of my options passed to the Select component when nothing matches the user input without writing the search logic from scratch. For example I have
[ {label:"apple", value:"apple"}, {label:"banana", value:"banana"}, {label:"grape", value:"grape"}, {label:"melon", value:"melon"}, ]
but if the user types in something that does not match any of the above I want to show the apple
Beta Was this translation helpful? Give feedback.
All reactions