I have 2 dropdown one is parent dropdown and other is the dependent child dropdown.
dropdown1 has values-a,b,c
dropdown2(child dropdown)- is hidden and gets unhidden when user select b value of dropdown 1
Now the scenario is->
suppose dropdown2 has items->p,q,r in it (in which p is the default value and initial value)
when b is selected-> dropdown2 gets unhidden and shows the default value p
->now we change Dropdown2 value to q
now c is selected-> Dropdown2 gets unhidden (it is working correctly till now)
now b is selected again->now default value p should appear but last selected value q is getting selected.