@bluemarble/bm-components 0.0.19 → 0.0.20
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.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -14873,7 +14873,7 @@ function FormikAutocomplete(_a) {
|
|
|
14873
14873
|
};
|
|
14874
14874
|
useEffect(() => {
|
|
14875
14875
|
if (!defaultOption.current)
|
|
14876
|
-
defaultOption.current = props.options.find((option) => Object.values(option)[0] === defaultValue);
|
|
14876
|
+
defaultOption.current = props.options.find((option) => String(Object.values(option)[0]) === String(defaultValue));
|
|
14877
14877
|
}, []);
|
|
14878
14878
|
return (React__default.createElement(Autocomplete$1, Object.assign({}, props, { renderInput: (params) => (React__default.createElement(TextField, Object.assign({}, params, field, { label: props.label }))), defaultValue: defaultOption.current, onChange: onChange })));
|
|
14879
14879
|
}
|