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;
|
||||
}
|
||||
|
||||
if (frameElement.isConnected && !frameElement.block) {
|
||||
if (frameElement.isConnected) {
|
||||
frameElement.refreshHandles();
|
||||
continue;
|
||||
}
|
||||
@ -114,13 +114,7 @@ export class FrameElement extends HTMLElement {
|
||||
|
||||
case "block":
|
||||
this.block = newValue !== "false";
|
||||
|
||||
if (!this.block) {
|
||||
this.refreshHandles();
|
||||
} else {
|
||||
this.removeHandles();
|
||||
}
|
||||
|
||||
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;
|
||||
removeEnd?: () => void;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user