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

Does not print in Firefox #11

Open
cameracker opened this issue Apr 2, 2019 · 1 comment
Open

Does not print in Firefox #11

cameracker opened this issue Apr 2, 2019 · 1 comment

Comments

@cameracker
Copy link

Printing does not work in firefox correctly, because the print call needs to be wrapped in a setTimeout call, like so:

setTime(() => {
  iframe.contentWindow.print();
  callback && callback(iframe);
  
  _this.changed = false;
  _this.props.onEnd();
}, 1);

I can prepare a PR if you would like :)

@hanzhangyu
Copy link
Owner

Thanks, But I have not succeeded in recreating this problem, Can you provide a codepen or an online link? I have tried in the firefox with 66.0.2 and 67.0 (64-bit) version on my window10.

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