@portnet/ui 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -145,12 +145,9 @@ const PuiFormikDateTimeField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
145
145
|
const formikContext = (0, _formik.useFormikContext)();
|
|
146
146
|
const [hasError, setHasError] = React.useState(false);
|
|
147
147
|
const handleChange = value => {
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
formikContext.setFieldValue(name, value);
|
|
149
|
+
if (onChange) {
|
|
150
150
|
onChange(value);
|
|
151
|
-
} else {
|
|
152
|
-
formikContext.setFieldValue(name, null);
|
|
153
|
-
onChange(null);
|
|
154
151
|
}
|
|
155
152
|
};
|
|
156
153
|
const handleBlur = event => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portnet/ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Portnet UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@testing-library/jest-dom": "^5.16.5",
|
|
26
26
|
"@testing-library/react": "^13.4.0",
|
|
27
27
|
"@testing-library/user-event": "^13.5.0",
|
|
28
|
-
"axios": "^
|
|
28
|
+
"axios": "^1.2.2",
|
|
29
29
|
"formik": "^2.2.9",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
31
|
"moment": "^2.29.4",
|
|
@@ -88,8 +88,6 @@
|
|
|
88
88
|
"@storybook/react": "^7.6.4",
|
|
89
89
|
"@storybook/react-webpack5": "^7.6.4",
|
|
90
90
|
"@storybook/testing-library": "^0.2.2",
|
|
91
|
-
"ajv": "^8.17.1",
|
|
92
|
-
"ajv-keywords": "^5.1.0",
|
|
93
91
|
"cross-env": "^7.0.3",
|
|
94
92
|
"husky": "^4.3.8",
|
|
95
93
|
"prop-types": "^15.8.1",
|