parent
948c4e08c6
commit
5326af856c
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@bd/core",
|
"name": "@bd/core",
|
||||||
"version": "1.8.7",
|
"version": "1.8.8",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "百搭UI组件库的核心",
|
"description": "百搭UI组件库的核心",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|
|
@ -89,9 +89,9 @@ export function bind(dom, type, selector, fn, phase = true) {
|
||||||
fn = fn || noop
|
fn = fn || noop
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWc === false && dom !== document && dom !== document.body) {
|
if (isWc === false) {
|
||||||
let node = dom.parentNode
|
let node = dom
|
||||||
while (node) {
|
while (node && node !== document.body && node !== document) {
|
||||||
if (node.ownHost) {
|
if (node.ownHost) {
|
||||||
isWc = true
|
isWc = true
|
||||||
host = node.ownHost
|
host = node.ownHost
|
||||||
|
|
Loading…
Reference in New Issue