I have developed a unique feature using dropkick js to create two multi select drop downs, arranged like nested drop downs.
The options in the second dropdown are dependent on the selection made in the first dropdown. I have included code that updates the options in the second dropdown whenever a change occurs in the outer dropdown.
However, I encountered an issue when attempting to reset both dropdowns simultaneously with the following code:
$('#outerSelect').dropkick('reset'); //executes successfully
$('#innerSelect').dropkick('reset'); //does not work as expected
While the inner dropdown resets properly, the outer dropdown does not. Interestingly, when I remove the HTML code for the inner dropdown and try resetting the outer dropdown individually, it works perfectly fine.
Can anyone provide guidance on how to resolve this issue?