@cdxoo/formik-utils
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -382,3 +382,5 @@ 'use strict'; | ||
_options$isThemed = options.isThemed, | ||
isThemed = _options$isThemed === void 0 ? true : _options$isThemed; | ||
isThemed = _options$isThemed === void 0 ? true : _options$isThemed, | ||
_options$onChangeRece = options.onChangeReceivesEvents, | ||
onChangeReceivesEvents = _options$onChangeRece === void 0 ? true : _options$onChangeRece; | ||
var componentTags = { | ||
@@ -414,2 +416,13 @@ DefaultWrapper: DefaultWrapper, | ||
field = fakeControlledInput(field, fakeDefault); | ||
var _field = field, | ||
value = _field.value, | ||
onChange = _field.onChange; | ||
var setFieldValue = form.setFieldValue; | ||
var saneOnChange = onChangeReceivesEvents ? onChange : function (next) { | ||
setFieldValue(dataXPath, next); | ||
}; | ||
var saneFormikField = { | ||
value: value, | ||
onChange: saneOnChange | ||
}; | ||
var wrapperBag = _objectSpread2(_objectSpread2({}, rest), {}, { | ||
@@ -424,3 +437,4 @@ label: label, | ||
formikMeta: meta, | ||
formikForm: form | ||
formikForm: form, | ||
saneFormikField: saneFormikField | ||
}); | ||
@@ -427,0 +441,0 @@ if (isThemed) { |
@@ -380,3 +380,5 @@ import React, { useContext, useCallback } from 'react'; | ||
_options$isThemed = options.isThemed, | ||
isThemed = _options$isThemed === void 0 ? true : _options$isThemed; | ||
isThemed = _options$isThemed === void 0 ? true : _options$isThemed, | ||
_options$onChangeRece = options.onChangeReceivesEvents, | ||
onChangeReceivesEvents = _options$onChangeRece === void 0 ? true : _options$onChangeRece; | ||
var componentTags = { | ||
@@ -412,2 +414,13 @@ DefaultWrapper: DefaultWrapper, | ||
field = fakeControlledInput(field, fakeDefault); | ||
var _field = field, | ||
value = _field.value, | ||
onChange = _field.onChange; | ||
var setFieldValue = form.setFieldValue; | ||
var saneOnChange = onChangeReceivesEvents ? onChange : function (next) { | ||
setFieldValue(dataXPath, next); | ||
}; | ||
var saneFormikField = { | ||
value: value, | ||
onChange: saneOnChange | ||
}; | ||
var wrapperBag = _objectSpread2(_objectSpread2({}, rest), {}, { | ||
@@ -422,3 +435,4 @@ label: label, | ||
formikMeta: meta, | ||
formikForm: form | ||
formikForm: form, | ||
saneFormikField: saneFormikField | ||
}); | ||
@@ -425,0 +439,0 @@ if (isThemed) { |
{ | ||
"name": "@cdxoo/formik-utils", | ||
"description": "", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"main": "cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
111382
1170