@rsuite/formik
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -200,3 +200,4 @@ var __create = Object.create; | ||
onChange: (newValue, event) => { | ||
field.onChange(event); | ||
const parsed = parseFloat(newValue); | ||
form.setFieldValue(field.name, isNaN(parsed) ? newValue : parsed); | ||
onChange == null ? void 0 : onChange(newValue, event); | ||
@@ -265,3 +266,3 @@ } | ||
onChange: (checked, event) => { | ||
form.setFieldValue(field.name, checked); | ||
field.onChange(event); | ||
onChange == null ? void 0 : onChange(checked, event); | ||
@@ -268,0 +269,0 @@ } |
{ | ||
"name": "@rsuite/formik", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Formik-compatible React Suite components", | ||
@@ -56,3 +56,3 @@ "publishConfig": { | ||
"react-dom": "^17.0.2", | ||
"rsuite": "^5.7.1", | ||
"rsuite": "^5.8.0", | ||
"tsup": "^5.12.1", | ||
@@ -63,4 +63,4 @@ "typescript": "^4.6.3" | ||
"formik": "^2.2.9", | ||
"rsuite": "^5.7.1" | ||
"rsuite": "^5.8.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21940
559
0