react-multi-select
react-multi-select copied to clipboard
Clicking a switch button in a selected item removes it
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
- Add a switch in the selectedItemRenderer={(props)=>{ return( ... <Switch.../> <DragHandleIcon />)}}
- Click on LHS column items to add them to RHS column.
- Click on a Switch in the RHS column. The item gets removed
Specifications
- Version: @kenshooui/react-multi-select": "^1.1.6"
- Platform: MacOS
- Subsystem: