@abgov/react-components 8.0.0-dev.6 → 8.0.0-dev.8

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/index.js CHANGED
@@ -2883,6 +2883,7 @@ function GoabDropdownMultiselect({
2883
2883
  labelFormat,
2884
2884
  children,
2885
2885
  onChange,
2886
+ onBlur,
2886
2887
  mt,
2887
2888
  mr,
2888
2889
  mb,
@@ -2896,11 +2897,17 @@ function GoabDropdownMultiselect({
2896
2897
  const detail = e.detail;
2897
2898
  onChange == null ? void 0 : onChange({ ...detail, event: e });
2898
2899
  };
2900
+ const blurListener = (e) => {
2901
+ const detail = e.detail;
2902
+ onBlur == null ? void 0 : onBlur({ ...detail, event: e });
2903
+ };
2899
2904
  current.addEventListener("_change", listener);
2905
+ current.addEventListener("_blur", blurListener);
2900
2906
  return () => {
2901
2907
  current.removeEventListener("_change", listener);
2908
+ current.removeEventListener("_blur", blurListener);
2902
2909
  };
2903
- }, [onChange]);
2910
+ }, [onChange, onBlur]);
2904
2911
  return /* @__PURE__ */ jsxRuntime.jsx(
2905
2912
  "goa-dropdown-multiselect",
2906
2913
  {