parent
714d9ceb3b
commit
5e1a5d7ebd
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@bd/core",
|
"name": "@bd/core",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "百搭UI组件库的核心",
|
"description": "百搭UI组件库的核心",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -183,7 +183,7 @@ export class Component extends HTMLElement {
|
||||||
disconnectedCallback() {
|
disconnectedCallback() {
|
||||||
this[__children__]?.setConnected(false)
|
this[__children__]?.setConnected(false)
|
||||||
|
|
||||||
if (!document.body.contains(this)) {
|
if (!document.body?.contains(this)) {
|
||||||
let $events = this.$events
|
let $events = this.$events
|
||||||
if ($events) {
|
if ($events) {
|
||||||
for (let name in $events) {
|
for (let name in $events) {
|
||||||
|
|
Loading…
Reference in New Issue