mirror of
https://github.com/outline/outline.git
synced 2026-12-05 10:45:07 +03:00
1 parent
2f5cf90cb7
commit
8ac853bb8b
1 file changed
+7
-3
@@ -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<>) => {
|
||||
|
||||
Reference in new issue
Block a user