This commit is contained in:
Vanessa 2023-03-07 09:12:28 +08:00
parent ea7fc4ea8e
commit 9916fe7f65

View file

@ -254,7 +254,7 @@ export class BlockPanel {
showMessage(response.msg);
return;
}
if (this.targetElement) {
if (!this.targetElement) {
return;
}
const action = [];
@ -313,7 +313,7 @@ export class BlockPanel {
}
private render() {
if (!this.element.parentElement.parentElement) {
if (!document.body.contains(this.element)) {
this.destroy();
return;
}