cascading dropdown in edit mode #5068
-
i have created a cascading dropdown in react js and it's working fine in create mode, but in edit mode the second dropdown is not the selected item. it seems that setValue is called before the second dropdown has fetch their options and so setValue is not working:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@iamhaaamed Please provide a codesandbox to get more detail about the issue. |
Beta Was this translation helpful? Give feedback.
-
Final solution of the issue (for better reading by other people that has the same issue): https://codesandbox.io/s/stupefied-currying-9ruj6?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
Final solution of the issue (for better reading by other people that has the same issue): https://codesandbox.io/s/stupefied-currying-9ruj6?file=/src/App.js