Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@data-driven-forms/react-form-renderer

Package Overview
Dependencies
Maintainers
2
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@data-driven-forms/react-form-renderer - npm Package Compare versions

Comparing version 3.16.10 to 3.16.11

24

condition/condition.js

@@ -89,11 +89,21 @@ "use strict";

setTimeout(function () {
formOptions.batch(function () {
Object.entries(setter).forEach(function (_ref3) {
var _ref4 = (0, _slicedToArray2["default"])(_ref3, 2),
name = _ref4[0],
value = _ref4[1];
/**
* We have to get the meta in the timetout to wait for state initialization
*/
var meta = formOptions.getFieldState(field.name);
/**
* Apply setter only on modfied fields or on fields with no initial value.
*/
formOptions.change(name, value);
if (typeof meta.initial === 'undefined' || meta.modified) {
formOptions.batch(function () {
Object.entries(setter).forEach(function (_ref3) {
var _ref4 = (0, _slicedToArray2["default"])(_ref3, 2),
name = _ref4[0],
value = _ref4[1];
formOptions.change(name, value);
});
});
});
}
});

@@ -100,0 +110,0 @@ }

@@ -64,11 +64,21 @@ import _typeof from "@babel/runtime/helpers/typeof";

setTimeout(function () {
formOptions.batch(function () {
Object.entries(setter).forEach(function (_ref3) {
var _ref4 = _slicedToArray(_ref3, 2),
name = _ref4[0],
value = _ref4[1];
/**
* We have to get the meta in the timetout to wait for state initialization
*/
var meta = formOptions.getFieldState(field.name);
/**
* Apply setter only on modfied fields or on fields with no initial value.
*/
formOptions.change(name, value);
if (typeof meta.initial === 'undefined' || meta.modified) {
formOptions.batch(function () {
Object.entries(setter).forEach(function (_ref3) {
var _ref4 = _slicedToArray(_ref3, 2),
name = _ref4[0],
value = _ref4[1];
formOptions.change(name, value);
});
});
});
}
});

@@ -75,0 +85,0 @@ }

{
"name": "@data-driven-forms/react-form-renderer",
"version": "3.16.10",
"version": "3.16.11",
"description": "React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc