@bluemarble/bm-components 0.0.22 → 0.0.25
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 +5 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3933,7 +3933,7 @@ const Grid = (props) => {
|
|
|
3933
3933
|
function handleFilterBySearch(text) {
|
|
3934
3934
|
const newArray = defaultData.filter((item) => {
|
|
3935
3935
|
for (const [, value] of Object.entries(item)) {
|
|
3936
|
-
if (`${value}`.includes(text))
|
|
3936
|
+
if (`${value}`.toLocaleLowerCase().includes(text.toLocaleLowerCase()))
|
|
3937
3937
|
return true;
|
|
3938
3938
|
}
|
|
3939
3939
|
return false;
|
|
@@ -14882,9 +14882,13 @@ function FormikAutocomplete(_a) {
|
|
|
14882
14882
|
return props.options.find((option) => Object.values(option)[0] === defaultValue);
|
|
14883
14883
|
}, []);
|
|
14884
14884
|
const onChange = (_, newValue) => {
|
|
14885
|
+
const value = option === null || option === void 0 ? void 0 : option.value;
|
|
14885
14886
|
if (getOptionValue) {
|
|
14886
14887
|
setValue(getOptionValue(newValue));
|
|
14887
14888
|
}
|
|
14889
|
+
else if (value) {
|
|
14890
|
+
setValue(newValue[value]);
|
|
14891
|
+
}
|
|
14888
14892
|
else
|
|
14889
14893
|
setValue(newValue);
|
|
14890
14894
|
};
|