How to set defualt value when using AsyncReactSelect #5755
Unanswered
gustavomm19
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @gustavomm19 can you please share a sample codesandbox? Thanks. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code, which is a dropdown to filter the data on a table, so the value of the option selected is used as a query string to filter the data when the page is reloaded, keeping track of the filters applied. My problem is that when the page is reloaded I cant use the querystring to pre-select the option with the same value.
query.student
is equal to thevalue
property of the selected option, but it doesnt display the selected option until I do it manuallyhttps://codesandbox.io/s/intelligent-cherry-vkq5y?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions