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.17.2 to 3.17.3

8

condition/condition.js

@@ -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",

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