Fix MathJax editor not opening when navigating into blocks (#2953)
This commit is contained in:
parent
f480ecea0c
commit
fe5ba1cce7
@ -59,7 +59,7 @@ function restoreFrameHandles(mutations: MutationRecord[]): void {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frameElement.isConnected && !frameElement.block) {
|
if (frameElement.isConnected) {
|
||||||
frameElement.refreshHandles();
|
frameElement.refreshHandles();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -114,13 +114,7 @@ export class FrameElement extends HTMLElement {
|
|||||||
|
|
||||||
case "block":
|
case "block":
|
||||||
this.block = newValue !== "false";
|
this.block = newValue !== "false";
|
||||||
|
|
||||||
if (!this.block) {
|
|
||||||
this.refreshHandles();
|
this.refreshHandles();
|
||||||
} else {
|
|
||||||
this.removeHandles();
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,14 +146,6 @@ export class FrameElement extends HTMLElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
removeHandles(): void {
|
|
||||||
this.handleStart?.remove();
|
|
||||||
this.handleStart = undefined;
|
|
||||||
|
|
||||||
this.handleEnd?.remove();
|
|
||||||
this.handleEnd = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
removeStart?: () => void;
|
removeStart?: () => void;
|
||||||
removeEnd?: () => void;
|
removeEnd?: () => void;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user