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