arengibook 2.4.33 → 2.4.35
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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12853,13 +12853,16 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12853
12853
|
value: newDate
|
|
12854
12854
|
});
|
|
12855
12855
|
}
|
|
12856
|
+
};
|
|
12857
|
+
useEffect(function () {
|
|
12856
12858
|
if (inputRef.current) {
|
|
12859
|
+
// Créer et déclencher un événement personnalisé
|
|
12857
12860
|
var event = new Event('datePickerChange', {
|
|
12858
12861
|
bubbles: true
|
|
12859
12862
|
});
|
|
12860
12863
|
inputRef.current.dispatchEvent(event);
|
|
12861
12864
|
}
|
|
12862
|
-
};
|
|
12865
|
+
}, [valeur]);
|
|
12863
12866
|
addLocale(localLanguage, LOCALES[localLanguage]);
|
|
12864
12867
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12865
12868
|
className: fullWidth ? "datepicker-fullwidth flex flex-col gap-1" : "flex flex-col gap-1"
|