Skip to content

Expose the event that caused a change to setExpanded and setChecked #270

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

Open
mherzkamp opened this issue May 5, 2021 · 0 comments
Open

Comments

@mherzkamp
Copy link

When setting expanded or checked items, I would like to perform different actions depending on whether the Ctrl key is down or not. In javascript events, this information is available as event.ctrlKey. However, the event object that caused the change in the state is not passed through to the setExpanded and setChecked functions, they currently only receive an array of values and a nodeInfo object. Would it be possible to pass the event that caused the change as third parameter?

mherzkamp pushed a commit to mherzkamp/react-checkbox-tree that referenced this issue May 5, 2021
…ked, setExpanded, onClick and other user functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants