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