I added a Switch button to each selected item so I can flag certain selected items. Clicking the switch onChange() should simply flip the switch and run my JS code.
Actual Behavior
Clicking the switch immediately removes the item from the selected items list.
Steps to Reproduce the Problem
Add a switch in the selectedItemRenderer={(props)=>{ return(
...
)}}
Click on LHS column items to add them to RHS column.
Click on a Switch in the RHS column. The item gets removed
Expected Behavior
I added a Switch button to each selected item so I can flag certain selected items. Clicking the switch onChange() should simply flip the switch and run my JS code.
Actual Behavior
Clicking the switch immediately removes the item from the selected items list.
Steps to Reproduce the Problem
Specifications