-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
🐛 [BUG]: Cannot add data-*
attributes to BaseEdge
#1741
Comments
I don't see why this is a "bug". <g data-test-id="my-test-id">
<BaseEdge .../>
</g> |
I can offer to refactor the BaseEdge to inherit attributes on it's main path element. |
I'll see if I can get around it with wrapping. Thank you for the suggestion! |
Thank you! That worked perfectly. Somehow, I didn't realize I can use an svg group for that, learned something new today. Feel free to close this since it has a simple workaround. |
I'll still allow binding attrs to the base edge main element since that makes sense. |
Fix released with |
Is there an existing issue for this?
Current Behavior
BaseEdge
does not renderdata-*
attributes such asdata-test-id
.Expected Behavior
BaseEdge
should render anydata-*
attribute you pass to it.Steps To Reproduce
data-*
attributes such asdata-test-id
to it.Minimal reproduction of the issue with CodeSandbox
No response
Relevant log output
No response
Anything else?
The text was updated successfully, but these errors were encountered: