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

Is there a way to identify if you have clicked print or cancel in the chrome print dialog? #827

Open
FranciscoCastle opened this issue Mar 10, 2024 · 0 comments

Comments

@FranciscoCastle
Copy link

I understand that I can identify before the dialog is presented and after with the methods:

window.onbeforeprint
window.onafterprint

but none of these methods validate whether the print or cancel button was clicked, only afterprint tells me that the dialog was closed.
Imagining that I need to save the information about whether what was sent to the dialog was printed or not, it is necessary to validate whether it was canceled or not, I think that is quite basic, but even so, Chrome does not have it, is there a way to identify if it was canceled or not? And if possible, could you add a callback or whatever that could help capture this information?

@FranciscoCastle FranciscoCastle changed the title Why is it not possible to know if the print was printed or the print was canceled from the Chrome print dialog? Is there a way to identify if you have clicked print or cancel in the chrome print dialog? Mar 10, 2024
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

1 participant