Skip to content

Clicking a switch button in a selected item removes it #202

@bigBxr

Description

@bigBxr

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.../>
    )}}
  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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions