@farm.js/react 0.1.0-beta.30 → 0.1.0-beta.31

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.
@@ -1725,6 +1725,9 @@ function updateAttribute(element, name, value) {
1725
1725
  if (name === "value" && (isInputElement(element) || isTextAreaElement(element))) {
1726
1726
  const nextValue = value === null || value === void 0 ? "" : String(value);
1727
1727
  if (element.value !== nextValue) element.value = nextValue;
1728
+ if (value != null && isInputElement(element) && (element.type !== "number" || element.ownerDocument.activeElement !== element) && element.defaultValue !== nextValue) {
1729
+ element.defaultValue = nextValue;
1730
+ }
1728
1731
  return;
1729
1732
  }
1730
1733
  if (name === "value" && isSelectElement(element)) {