@aarhus-university/au-designsystem-delphinus 0.26.7 → 0.26.8
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -111,9 +111,9 @@ const setResponsiveNav = (
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
// gitlab #115
|
|
114
|
-
const bodyClickEvent = (e:
|
|
114
|
+
const bodyClickEvent = (e: Event) => {
|
|
115
115
|
if (!(e.target as HTMLElement).classList.contains('nav__toggle')
|
|
116
|
-
&& !isElementWithClassNameInEventPath(e, navItemsClass)) {
|
|
116
|
+
&& !isElementWithClassNameInEventPath(e as MouseEvent, navItemsClass)) {
|
|
117
117
|
closeResponsiveNav(navElements);
|
|
118
118
|
}
|
|
119
119
|
};
|
|
@@ -154,8 +154,8 @@ const setSubNavToggle = (buttons: NodeListOf<Element>, button: Element): SetSubN
|
|
|
154
154
|
button.addEventListener('click', buttonClickEvent);
|
|
155
155
|
|
|
156
156
|
// gitlab #115
|
|
157
|
-
const bodyClickEvent = (e:
|
|
158
|
-
if (!isElementWithClassNameInEventPath(e, 'sub-nav')) {
|
|
157
|
+
const bodyClickEvent = (e: Event) => {
|
|
158
|
+
if (!isElementWithClassNameInEventPath(e as MouseEvent, 'sub-nav')) {
|
|
159
159
|
closeSubNav(buttons);
|
|
160
160
|
}
|
|
161
161
|
};
|
|
@@ -5,17 +5,17 @@ interface CleanUpPair {
|
|
|
5
5
|
|
|
6
6
|
interface SetResponsiveNavCleanUp {
|
|
7
7
|
element: Element | null,
|
|
8
|
-
clickEvent: (event:
|
|
8
|
+
clickEvent: (event: Event) => void,
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
interface SetSubNavToggleCleanUp {
|
|
12
12
|
buttonClickEvent: () => void,
|
|
13
13
|
element: Element | null,
|
|
14
|
-
bodyClickEvent: (e:
|
|
14
|
+
bodyClickEvent: (e: Event) => void,
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
interface setSelectionListOverlaysCleanUp {
|
|
18
18
|
pairs: CleanUpPair[],
|
|
19
19
|
element: Element | null,
|
|
20
|
-
clickEvent: (event:
|
|
20
|
+
clickEvent: (event: Event) => void,
|
|
21
21
|
}
|