[QUESTION] Deselect when options list is changed #96
Answered
by
irekrog
gbspecapedra
asked this question in
Q&A
-
Hello folks, at this moment I'm trying to deselect an option that does not exist in the list options depending on the selection of another select field. For example, in a select field for a day and another for a month, the select day has 31 days but when I select FEB in the month select, day 31 doesn't exist in the options list in the first select but is not cleaned from the value selected. Any ideas how to fix that? |
Beta Was this translation helpful? Give feedback.
Answered by
irekrog
Sep 20, 2022
Replies: 1 comment
-
Hi @wdgisele You can try to use onSelect and clear(). Look at the example: https://snack.expo.dev/@irekrog/smelly-beef-jerky-2 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gbspecapedra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @wdgisele
You can try to use onSelect and clear().
Look at the example: https://snack.expo.dev/@irekrog/smelly-beef-jerky-2