Skip to content

Commit 8e17e52

Browse files
committed
Fix: Reverted render timeout. Will return in 3.13
1 parent 2d5ee39 commit 8e17e52

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

new-client/src/plugins/DocumentHandler/printMenu/PrintWindow.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -488,16 +488,15 @@ class PrintWindow extends React.PureComponent {
488488
// Add our recently-created DIV to the new window's document
489489
newWindow.document.body.appendChild(printContent);
490490

491-
// We force print to the next upcoming render. Let it render in peace.
492-
setTimeout(() => {
493-
// Invoke browser's print dialog - this will block the thread
494-
// until user does something with it.
495-
newWindow.print();
496-
// Once the print dialog has disappeared, let's close the new window
497-
newWindow.close();
498-
// When the user closes the print-window we have to do some cleanup...
499-
this.handlePrintCompleted();
500-
}, 25);
491+
// Invoke browser's print dialog - this will block the thread
492+
// until user does something with it.
493+
newWindow.print();
494+
495+
// Once the print dialog has disappeared, let's close the new window
496+
newWindow.close();
497+
498+
// When the user closes the print-window we have to do some cleanup...
499+
this.handlePrintCompleted();
501500
});
502501
});
503502
};

0 commit comments

Comments
 (0)