Skip to content

Commit 1935c92

Browse files
authored
fix(Navigation): fix outside click on compact navigation (#524)
Co-authored-by: 3y3 <[email protected]>
1 parent debf477 commit 1935c92

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"sanitize-html": "2.6.1",
100100
"snakecase-keys": "^5.1.0",
101101
"typograf": "^6.14.0",
102+
"utility-types": "^3.10.0",
102103
"uuid": "^9.0.0"
103104
},
104105
"peerDependencies": {

src/navigation/components/MobileMenuButton/MobileMenuButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export const MobileMenuButton: React.FC<MobileMenuButtonProps> = ({
1919
className={b()}
2020
onClick={(e: MouseEvent) => {
2121
e.stopPropagation();
22+
e.nativeEvent.stopImmediatePropagation();
23+
2224
onSidebarOpenedChange(!isSidebarOpened);
2325
}}
2426
size="l"

0 commit comments

Comments
 (0)