Clear innerHTML before swapping

This commit is contained in:
aron bergur jóhannsson 2023-03-02 22:57:58 +00:00
parent 525f53c13b
commit 58a7216d2d
3 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -34,6 +34,7 @@ function initMarkdownPreview(markdownWidget: HTMLDivElement) {
e.detail.parameters = { text: textarea.value || '' };
e.detail.headers['X-CSRFToken'] = window.CSRF_TOKEN;
preview.style.minHeight = textarea.style.height;
preview.innerHTML = '';
});
}