Caleb Porzio 6 月之前
父节点
当前提交
a88d40c8c4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/morph/src/morph.js

+ 1 - 0
packages/morph/src/morph.js

@@ -497,6 +497,7 @@ function seedingMatchingId(to, from) {
     let fromId = from && from._x_bindings && from._x_bindings.id
 
     if (! fromId) return
+    if (! to.setAttribute) return
 
     to.setAttribute('id', fromId)
     to.id = fromId