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

Added removeAfterPrint #152

Merged
merged 1 commit into from
Jul 30, 2019
Merged

Added removeAfterPrint #152

merged 1 commit into from
Jul 30, 2019

Conversation

aviklai
Copy link
Contributor

@aviklai aviklai commented Jul 27, 2019

#151

I looked at the commits of the past year and I saw that the closeAfterPrint property was used when the printing was done using a window and not an iframe.
Since currently the library uses iframe for printing, I added a removeAfterPrint property which removes the iframe after printing.
For now, it defaults to false since by default the iframe was not removed and I don't want it to add a breaking change (maybe someone used the iframe after the print)

Copy link
Owner

@MatthewHerbst MatthewHerbst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for picking up my slack! Vacation really makes me lazy :)

example/index.tsx Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
@aviklai
Copy link
Contributor Author

aviklai commented Jul 30, 2019

@MatthewHerbst And enjoy your vacation :)

@MatthewHerbst MatthewHerbst merged commit 9e93eab into MatthewHerbst:master Jul 30, 2019
@MatthewHerbst
Copy link
Owner

Published as 2.3.0, thanks!

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

Successfully merging this pull request may close these issues.

2 participants