@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.js
CHANGED
|
@@ -20775,10 +20775,14 @@ function GoADatePicker({
|
|
|
20775
20775
|
return;
|
|
20776
20776
|
}
|
|
20777
20777
|
const current = ref.current;
|
|
20778
|
-
|
|
20778
|
+
const handleChange = (e) => {
|
|
20779
20779
|
onChange(name || "", e.detail.value);
|
|
20780
|
-
}
|
|
20781
|
-
|
|
20780
|
+
};
|
|
20781
|
+
current.addEventListener("_change", handleChange);
|
|
20782
|
+
return () => {
|
|
20783
|
+
current.removeEventListener("_change", handleChange);
|
|
20784
|
+
};
|
|
20785
|
+
}, [onChange]);
|
|
20782
20786
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20783
20787
|
"goa-date-picker",
|
|
20784
20788
|
{
|