@data-driven-forms/react-form-renderer
Advanced tools
Comparing version 3.17.2 to 3.17.3
@@ -93,7 +93,11 @@ "use strict"; | ||
var meta = formOptions.getFieldState(field.name); | ||
var isFormModified = Object.values(formOptions.getState().modified).some(Boolean); | ||
/** | ||
* Apply setter only on modfied fields or on fields with no initial value. | ||
* Apply setter only | ||
* - field has no initial value | ||
* - form is modified | ||
* - when meta is false = field was unmounted before timeout, we finish the condition | ||
*/ | ||
if (typeof meta.initial === 'undefined' || meta.modified) { | ||
if (!meta || isFormModified || typeof meta.initial === 'undefined') { | ||
formOptions.batch(function () { | ||
@@ -100,0 +104,0 @@ Object.entries(setter).forEach(function (_ref3) { |
@@ -68,7 +68,11 @@ import _typeof from "@babel/runtime/helpers/typeof"; | ||
var meta = formOptions.getFieldState(field.name); | ||
var isFormModified = Object.values(formOptions.getState().modified).some(Boolean); | ||
/** | ||
* Apply setter only on modfied fields or on fields with no initial value. | ||
* Apply setter only | ||
* - field has no initial value | ||
* - form is modified | ||
* - when meta is false = field was unmounted before timeout, we finish the condition | ||
*/ | ||
if (typeof meta.initial === 'undefined' || meta.modified) { | ||
if (!meta || isFormModified || typeof meta.initial === 'undefined') { | ||
formOptions.batch(function () { | ||
@@ -75,0 +79,0 @@ Object.entries(setter).forEach(function (_ref3) { |
{ | ||
"name": "@data-driven-forms/react-form-renderer", | ||
"version": "3.17.2", | ||
"version": "3.17.3", | ||
"description": "React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291615
5919