@portnet/ui 0.0.31 → 0.0.32
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.
|
@@ -205,6 +205,12 @@ const PuiFormikAutocomplete = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
205
205
|
}
|
|
206
206
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
207
207
|
}, [value]);
|
|
208
|
+
React.useEffect(() => {
|
|
209
|
+
if (!Boolean(field.value)) {
|
|
210
|
+
setSelectedOption(null);
|
|
211
|
+
}
|
|
212
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
213
|
+
}, [field.value]);
|
|
208
214
|
React.useEffect(() => {
|
|
209
215
|
if (!Boolean(selectedOption) && field.value !== undefined && options !== undefined) {
|
|
210
216
|
let option;
|
|
@@ -158,7 +158,7 @@ const PuiFormikFileField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
158
158
|
setHasError(Boolean(name) && Boolean(meta) && Boolean(meta.touched) && Boolean(meta.error));
|
|
159
159
|
}, [name, meta]);
|
|
160
160
|
React.useEffect(() => {
|
|
161
|
-
if (!Boolean(field)) {
|
|
161
|
+
if (!Boolean(field.value)) {
|
|
162
162
|
setFileDecription("");
|
|
163
163
|
}
|
|
164
164
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -108,7 +108,8 @@ const PuiSearchPage = _ref3 => {
|
|
|
108
108
|
marginBottom: 2
|
|
109
109
|
},
|
|
110
110
|
children: /*#__PURE__*/React.createElement(formik ? PuiFormikSearchPageContainer : PuiStandardSearchPageContainer, _objectSpread(_objectSpread({
|
|
111
|
-
innerRef: formRef
|
|
111
|
+
innerRef: formRef,
|
|
112
|
+
initialValues: {}
|
|
112
113
|
}, formikProps), {}, {
|
|
113
114
|
actions: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiGrid.default, {
|
|
114
115
|
container: true,
|