onPrintDialogClose not working with Chrome Version 86.0.4240.75 (Official Build) (64-bit)
See original GitHub issueI use the PrintJS library for pdf print and I used to call the onPrintDialogClose
function to reload after I close the dialogue window. But since the latest chrome version, the function is being skipped altogether and not triggering. Although the dialogue window is opening but the onPrintDialogClose
functionality is not triggering and skipping.
sample code which was working before:
window.printJS({printable:url, type:'pdf', onPrintDialogClose: function(){ window.location.href = "/"; window.location.reload(); }});
EDIT: Interesting point: If I switch screen or toggle any opened tab or open a new tab and come back. The reload function triggers then.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:12
- Comments:19 (2 by maintainers)
Top GitHub Comments
I opened a pull request.
What workround can I suggest:
After calling printJS ()
add the following code:
It may still need to be checked for specific browsers, I checked it only for Chrome.
Tell me, if it doesn’t work, I’ll try to find something else.
this is working but there is spelling mistake for mouseover event