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

Unable to get the advanced configuration passProps to work #186

Open
wip-abramson opened this issue Oct 16, 2023 · 1 comment
Open

Unable to get the advanced configuration passProps to work #186

wip-abramson opened this issue Oct 16, 2023 · 1 comment

Comments

@wip-abramson
Copy link

I am attempting to change the color of the arrow onHover. Figured I would use the passProps feature as follows:

passProps= {{
                onMouseEnter: () => setIsHovered(true),
                onMouseLeave :() => setIsHovered(false),
                onClick: () => console.log("head clicked!"),
                cursor: "pointer",
                pointerEvents: "auto"
            }}

However, none of these props take effect on the arrow.

To Reproduce

  1. Define an Xarrow react element with valid start and end references to components
  2. Set passProps value as above
  3. Attempt to hover or click on the Xarrow

Has anyone else had any success using this feature?

@TracyYXChen
Copy link

all props above work for me, however, I can't change the color based on isHovered

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

2 participants