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

Tspan elements produce an error in v3 #2003

Open
tinkatinka opened this issue Sep 2, 2022 · 1 comment
Open

Tspan elements produce an error in v3 #2003

tinkatinka opened this issue Sep 2, 2022 · 1 comment

Comments

@tinkatinka
Copy link

Describe the bug
Tspan nodes within Text nodes within Svg nodes create an error:
TypeError: undefined is not an object (evaluating 't.box')

To Reproduce
See this repl

Expected behavior
Tspan within Text nodes should render without errors.

React-pdf version: 3.0.0

@marco-hd
Copy link

The same error in 3.0.1. Can't use <Tspan />.

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