I have 3 dropdowns that are connected to a dataset and conditionally rendered based on user selection. The first dropdown contains 2 options; the second dropdown only contains 1 option; the third dropdown contains 2 sets of 5 options.
The first dropdown is enabled on page load, the second and third dropdowns are not enabled until a selection is made in the preceding dropdown; kind of like a onChange cascade.
The problem I am having is that since the second dropdown contains only 1 option, when the user changes the selection in first dropdown the second dropdown only contains 1 option and cannot be changed so an onChange isn’t triggering the third dropdown to update.
I think I need to write a reset function that checks if the next dropdown has a value and clear it. I’m just not sure how to do this.