Vanessa 2024-04-06 23:30:07 +08:00
parent 00f7439daf
commit d697f2799f
4 changed files with 12 additions and 20 deletions

View file

@ -74,10 +74,6 @@ export class Preview {
this.element.appendChild(previewElement);
this.element.addEventListener("click", (event) => {
if (protyle.model) {
setPanelFocus(protyle.model.element.parentElement.parentElement);
updateOutline(getAllModels(), protyle.model.editor.protyle);
}
let target = event.target as HTMLElement;
while (target && !target.isEqualNode(this.element)) {
if (target.tagName === "A") {