arengibook 3.2.1-datepicker → 3.3.0-datepicker
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 +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13314,6 +13314,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13314
13314
|
var scrollListenersRef = useRef([]);
|
|
13315
13315
|
var panelWheelListenerRef = useRef(null);
|
|
13316
13316
|
var panelVisibleRef = useRef(false);
|
|
13317
|
+
var isFirstMount = useRef(true);
|
|
13317
13318
|
useEffect(function () {
|
|
13318
13319
|
setStory(datePickerStorie(dateFormat));
|
|
13319
13320
|
}, [dateFormat]);
|
|
@@ -13470,6 +13471,10 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13470
13471
|
}
|
|
13471
13472
|
};
|
|
13472
13473
|
useEffect(function () {
|
|
13474
|
+
if (isFirstMount.current) {
|
|
13475
|
+
isFirstMount.current = false;
|
|
13476
|
+
return;
|
|
13477
|
+
}
|
|
13473
13478
|
if (inputRef.current) {
|
|
13474
13479
|
var event = new Event('datePickerChange', {
|
|
13475
13480
|
bubbles: true
|