diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-05-11 22:19:47 +0200 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-05-11 22:19:47 +0200 |
commit | 6680b2e1a0aff5f474461011631fa9724d929c2c (patch) | |
tree | 27acfda802cbce93f0b753da101189c2fde1cc00 /src/vdom.ffi.mjs | |
parent | d725ede29c8e8345e3219c503329722b5ab5de61 (diff) | |
download | lustre-6680b2e1a0aff5f474461011631fa9724d929c2c.tar.gz lustre-6680b2e1a0aff5f474461011631fa9724d929c2c.zip |
:bug: Fixed a bug where setting properties would cause incorrect diffs to apply.
Diffstat (limited to 'src/vdom.ffi.mjs')
-rw-r--r-- | src/vdom.ffi.mjs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vdom.ffi.mjs b/src/vdom.ffi.mjs index 6678db2..542bc53 100644 --- a/src/vdom.ffi.mjs +++ b/src/vdom.ffi.mjs @@ -234,6 +234,8 @@ function createElementNode({ prev, next, dispatch, stack }) { // Properties are set directly on the DOM node. if (attr.as_property) { el[name] = value; + + if (canMorph) prevAttributes.delete(name); } // Event handlers require some special treatment. We have a generic event // handler that is used for all event handlers attached by lustre. This way |