Closed piranha closed 1 year ago
I think, this change introduced a bug when morphing an <input>
and updating the checked
attribute and property.
idiomorph@0.0.8
does not have this bug, idiomorph@0.0.9
has the bug. I need to further investigate and find the exact commit. will provide an example when I have time.
update: bug was introduced in "simplify syncNodeFrom a bit" (https://github.com/bigskysoftware/idiomorph/pull/4/commits/3682987eb154e1c41080d1fcb49bdd77881889ae)
There are two commits: one about flattening
morphChildren
needs repeatedremoveIdsFromConsideration
(btw, I don't cache ids and it seems to perform ok, so maybe you want to experiment with this?), and another aboutsyncNodeFrom
seems like a no-brainer with a little helper.