Skip to content

Commit 652a325

Browse files
fix(util/Dropdown): Hide menu list when clicking on language.
1 parent 6b7ce89 commit 652a325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/components/util/dropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Dropdown = ({
113113
}
114114
}, [containerRef])
115115

116-
const _handleKeyDown = (e: any): void => {
116+
const _handleKeyDown = (e: KeyboardEvent): void => {
117117
const element = e.target as HTMLElement
118118
switch (e.key) {
119119
case 'ArrowUp':
@@ -183,6 +183,7 @@ const Dropdown = ({
183183
aria-label={listLabel}
184184
aria-labelledby={listLabel ? '' : `${id}-label`}
185185
id={id}
186+
onClick={toggleOpen}
186187
role="list"
187188
tabIndex={-1}
188189
>

0 commit comments

Comments
 (0)