clear selection on htmlRender (#544)
This commit is contained in:
@@ -35,8 +35,13 @@
|
|||||||
|
|
||||||
// Called when rendering a new email for the first time
|
// Called when rendering a new email for the first time
|
||||||
function RenderHTML(htmlString, shouldLinkifyText = true) {
|
function RenderHTML(htmlString, shouldLinkifyText = true) {
|
||||||
|
|
||||||
|
// Reset scroll to top
|
||||||
window.scroll(0, 0);
|
window.scroll(0, 0);
|
||||||
|
|
||||||
|
// Clear any existing selection
|
||||||
|
window.getSelection().removeAllRanges();
|
||||||
|
|
||||||
_htmlString = htmlString;
|
_htmlString = htmlString;
|
||||||
_shouldLinkifyText = shouldLinkifyText;
|
_shouldLinkifyText = shouldLinkifyText;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user