@portnet/ui 0.0.75 → 0.0.77
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.
|
@@ -204,7 +204,7 @@ const PuiFormikAutocomplete = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
204
204
|
formikContext.setFieldValue(name, getOptionValue(option));
|
|
205
205
|
}
|
|
206
206
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
207
|
-
}, [value]);
|
|
207
|
+
}, [value, options]);
|
|
208
208
|
React.useEffect(() => {
|
|
209
209
|
if (!Boolean(field.value)) {
|
|
210
210
|
setSelectedOption(null);
|
|
@@ -212,6 +212,7 @@ const PuiFormikAutocomplete = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
212
212
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
213
213
|
}, [field.value]);
|
|
214
214
|
React.useEffect(() => {
|
|
215
|
+
console.log("field.value", field.value);
|
|
215
216
|
if (!Boolean(selectedOption) && field.value !== undefined && options !== undefined) {
|
|
216
217
|
let option;
|
|
217
218
|
if (typeof field.value === "object") {
|