@abgov/react-components 4.17.0-alpha.23 → 4.17.0-alpha.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/index.js +7 -3
- package/index.js.map +1 -1
- package/index.mjs +7 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -20773,10 +20773,14 @@ function GoADatePicker({
|
|
|
20773
20773
|
return;
|
|
20774
20774
|
}
|
|
20775
20775
|
const current = ref.current;
|
|
20776
|
-
|
|
20776
|
+
const handleChange = (e) => {
|
|
20777
20777
|
onChange(name || "", e.detail.value);
|
|
20778
|
-
}
|
|
20779
|
-
|
|
20778
|
+
};
|
|
20779
|
+
current.addEventListener("_change", handleChange);
|
|
20780
|
+
return () => {
|
|
20781
|
+
current.removeEventListener("_change", handleChange);
|
|
20782
|
+
};
|
|
20783
|
+
}, [onChange]);
|
|
20780
20784
|
return /* @__PURE__ */ jsx(
|
|
20781
20785
|
"goa-date-picker",
|
|
20782
20786
|
{
|