Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bigBxr opened this issue Sep 6, 2022 · 0 comments
Open

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

bigBxr opened this issue Sep 6, 2022 · 0 comments

Comments

@bigBxr
Copy link

bigBxr commented Sep 6, 2022

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant