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

Unavaible to override existing CSS style within the adjustClone function #170

Open
chege1805 opened this issue May 13, 2024 · 1 comment

Comments

@chege1805
Copy link

It is not possible to override an existing CSS style in the adjustClone function.

jsfiddle https://jsfiddle.net/42cyghsu/6/

Expected behavior

The generated PDF apply the styles set in the adjustClone function

Actual behavior (stack traces, console logs etc)

Only unset CSS style is visible in the output PDF

Library version

Browsers

ALL

@IDisposable
Copy link
Member

Thank you for the JSFiddle!

Looks like it's indeed a bug... one thing I noticed, though... you should NOT be checking the clone.id as that should be getting assigned a different value on the clone can't have two DOM nodes with the same .id). Check the node.id instead... but I doubt that's your issue... will track this down

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