Antd Select not working with setValue #1778
Answered
by
bluebill1049
ajaybeniwal
asked this question in
Q&A
-
We are using Controller component to wrap Antd select component , but when we call set value on form passing the name of control it does not set the display value of the select https://codesandbox.io/embed/hopeful-ramanujan-8v7jo?fontsize=14&hidenavigation=1&theme=dark |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
Jun 5, 2020
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
And one more thing the nested component does not work either do we need to pass anything down to the component |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am not a pro at AntD, but controller definitely works: https://codesandbox.io/s/modern-leaf-wikw5?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not a pro at AntD, but controller definitely works: https://codesandbox.io/s/modern-leaf-wikw5?file=/src/App.js