From 5e1a5d7ebdc1a3d98fad2a58d4b54e3843b4edb9 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 26 Apr 2023 19:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8iframe=E4=B8=AD?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=B6,=20=E8=B0=83=E7=94=A8document.open(?= =?UTF-8?q?)=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9cad53c..c98a8ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.9.1", + "version": "1.9.2", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/index.js b/src/index.js index 5512a71..f5bdd25 100644 --- a/src/index.js +++ b/src/index.js @@ -183,7 +183,7 @@ export class Component extends HTMLElement { disconnectedCallback() { this[__children__]?.setConnected(false) - if (!document.body.contains(this)) { + if (!document.body?.contains(this)) { let $events = this.$events if ($events) { for (let name in $events) {