parent
714d9ceb3b
commit
5e1a5d7ebd
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@bd/core",
|
||||
"version": "1.9.1",
|
||||
"version": "1.9.2",
|
||||
"type": "module",
|
||||
"description": "百搭UI组件库的核心",
|
||||
"main": "dist/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) {
|
||||
|
|
Loading…
Reference in New Issue