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

onSelect only called once when allowMultiSelect set to true #344

Open
andreirawan97 opened this issue Dec 8, 2022 · 0 comments · May be fixed by #345
Open

onSelect only called once when allowMultiSelect set to true #344

andreirawan97 opened this issue Dec 8, 2022 · 0 comments · May be fixed by #345

Comments

@andreirawan97
Copy link

Describe the bug
Just like the title, the onSelect prop only called once when allowMultiSelect set to true. While when set to false, the onSelect prop can call multiple times. I'm developing a double click node feature where it needs the onSelect prop to called multiple times.

To Reproduce
Steps to reproduce the behavior:

  1. Set allowMultiSelect to true or just leave it as default
  2. Multiple clicks on a node
  3. onSelect only called once.

Expected behavior
onSelect called multiple times

Screenshots
No screenshot

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome
  • Version 8.1.0

Additional context
Add any other context about the problem here.

harchcode added a commit to harchcode/react-digraph that referenced this issue Dec 8, 2022
@harchcode harchcode linked a pull request Dec 8, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant