@portnet/ui 5.0.2 → 5.0.3
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,9 +145,12 @@ 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
|
+
if (value) {
|
|
149
|
+
formikContext.setFieldValue(name, value);
|
|
150
150
|
onChange(value);
|
|
151
|
+
} else {
|
|
152
|
+
formikContext.setFieldValue(name, null);
|
|
153
|
+
onChange(null);
|
|
151
154
|
}
|
|
152
155
|
};
|
|
153
156
|
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.3",
|
|
4
4
|
"description": "Portnet UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -88,6 +88,8 @@
|
|
|
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",
|
|
91
93
|
"cross-env": "^7.0.3",
|
|
92
94
|
"husky": "^4.3.8",
|
|
93
95
|
"prop-types": "^15.8.1",
|