fix: Printing from doc menu is blank in Firefox

closes #2543
This commit is contained in:
Tom Moor committed 2021-09-09 20:41:56 -07:00
1 parent 2f5cf90cb7
commit 8ac853bb8b
1 file changed
+7 -3
+7 -3
View File
@@ -134,9 +134,13 @@ function DocumentMenu({
[showToast, t, document]
);
const handlePrint = React.useCallback((ev: SyntheticEvent<>) => {
window.print();
}, []);
const handlePrint = React.useCallback(
(ev: SyntheticEvent<>) => {
menu.hide();
window.print();
},
[menu]
);
const handleStar = React.useCallback(
(ev: SyntheticEvent<>) => {