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

Clipping failed due to t.parentNode.closest is not a function #392

Closed
m2jean opened this issue Jan 5, 2025 · 1 comment
Closed

Clipping failed due to t.parentNode.closest is not a function #392

m2jean opened this issue Jan 5, 2025 · 1 comment

Comments

@m2jean
Copy link

m2jean commented Jan 5, 2025

Clipping failed with this error:
image

The exception was thrown at

if (node.parentNode && node.parentNode.closest('svg')) {

It was because there was an SVG whose parent wasn't a normal element but a shadow root
image

@mika-cn
Copy link
Owner

mika-cn commented Jan 6, 2025

Nice feedback :)

I've fixed it on v0.7.75 and v0.7.0.4
Both new versions will be published today.

@mika-cn mika-cn closed this as completed Jan 18, 2025
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