@bluemarble/bm-components 0.0.23 → 0.0.24

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 CHANGED
@@ -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 key = option === null || option === void 0 ? void 0 : option.key;
14885
14886
  if (getOptionValue) {
14886
14887
  setValue(getOptionValue(newValue));
14887
14888
  }
14889
+ else if (key) {
14890
+ setValue(newValue[key]);
14891
+ }
14888
14892
  else
14889
14893
  setValue(newValue);
14890
14894
  };