Skip to content

Unable to get the advanced configuration passProps to work #186

@wip-abramson

Description

@wip-abramson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions