allaw-ui 2.0.6 → 2.0.7
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.
|
@@ -101,9 +101,21 @@ var Stepper = function (_a) {
|
|
|
101
101
|
}, [onClose]);
|
|
102
102
|
var handleMouseDown = useCallback(function (e) {
|
|
103
103
|
var selectList = document.querySelector('[class*="selectList"]');
|
|
104
|
+
var datepickerElements = document.querySelectorAll([
|
|
105
|
+
".datepicker-portal",
|
|
106
|
+
".react-datepicker",
|
|
107
|
+
".react-datepicker__month-container",
|
|
108
|
+
".react-datepicker__header",
|
|
109
|
+
".react-datepicker__day",
|
|
110
|
+
".react-datepicker__current-month",
|
|
111
|
+
".react-datepicker__month-dropdown",
|
|
112
|
+
".react-datepicker__year-dropdown",
|
|
113
|
+
].join(","));
|
|
114
|
+
var isClickOnDatepicker = Array.from(datepickerElements).some(function (element) { return element === null || element === void 0 ? void 0 : element.contains(e.target); });
|
|
104
115
|
if (stepperContainerRef.current &&
|
|
105
116
|
!stepperContainerRef.current.contains(e.target) &&
|
|
106
|
-
!(selectList === null || selectList === void 0 ? void 0 : selectList.contains(e.target))
|
|
117
|
+
!(selectList === null || selectList === void 0 ? void 0 : selectList.contains(e.target)) &&
|
|
118
|
+
!isClickOnDatepicker) {
|
|
107
119
|
handleClose();
|
|
108
120
|
}
|
|
109
121
|
}, [handleClose]);
|
|
@@ -7,9 +7,9 @@ declare const meta: {
|
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
9
9
|
args: {
|
|
10
|
-
onLogin: import("@vitest/spy").Mock<[]
|
|
11
|
-
onLogout: import("@vitest/spy").Mock<[]
|
|
12
|
-
onCreateAccount: import("@vitest/spy").Mock<[]
|
|
10
|
+
onLogin: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
11
|
+
onLogout: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
12
|
+
onCreateAccount: import("@vitest/spy").Mock<(...args: any[]) => any>;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
export default meta;
|