@b9g/crank 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/crank.js CHANGED
@@ -656,7 +656,10 @@ function updateHost(renderer, root, ctx, scope, ret, oldProps, hydrationData) {
656
656
  }
657
657
  function commitHost(renderer, scope, ret, childValues, oldProps, hydrationValue) {
658
658
  const tag = ret.el.tag;
659
- let value = hydrationValue || ret.value;
659
+ let value = ret.value;
660
+ if (hydrationValue != null) {
661
+ value = ret.value = hydrationValue;
662
+ }
660
663
  let props = ret.el.props;
661
664
  let copied;
662
665
  if (tag !== Portal) {