Caleb Porzio 6 tháng trước cách đây
mục cha
commit
a88d40c8c4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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