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