react-multi-select icon indicating copy to clipboard operation
react-multi-select copied to clipboard

Clicking a switch button in a selected item removes it

Open bigBxr opened this issue 2 years ago • 0 comments

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

  1. Add a switch in the selectedItemRenderer={(props)=>{ return(
    ... <Switch.../> <DragHandleIcon />
    )}}
  2. Click on LHS column items to add them to RHS column.
  3. Click on a Switch in the RHS column. The item gets removed

Specifications

  • Version: @kenshooui/react-multi-select": "^1.1.6"
  • Platform: MacOS
  • Subsystem:

bigBxr avatar Sep 06 '22 22:09 bigBxr