mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 15:34:26 +01:00
Fix bug in math rendering where old content was not cleared
This commit is contained in:
parent
c8d34e65ea
commit
a6de1041c7
@ -56,6 +56,10 @@ export default class MathView extends View {
|
|||||||
|
|
||||||
public updateMath(): void {
|
public updateMath(): void {
|
||||||
if ( this.element ) {
|
if ( this.element ) {
|
||||||
|
|
||||||
|
// This prevents the new render from appending to the old one.
|
||||||
|
this.element.textContent = '';
|
||||||
|
|
||||||
void renderEquation(
|
void renderEquation(
|
||||||
this.value,
|
this.value,
|
||||||
this.element,
|
this.element,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user