Skip to content

Commit

Permalink
fix: always close mobile sidemenu on click (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx authored Feb 10, 2023
1 parent cae5d6f commit 13c7b6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/interface/Header/ToolItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ToolItem = ({
</HtmlTag>
) : (
<Link
onClick={onClick ? onClickToolItem : undefined}
onClick={onClickToolItem}
as={asLink}
target={target}
className={className}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ exports[`<Header /> renders correctly 1`] = `
<a
className="ds-fr--flex fr-link fr-link--md"
href="/path"
onClick={[Function]}
target="_self"
>
<span
Expand All @@ -111,6 +112,7 @@ exports[`<Header /> renders correctly 1`] = `
<a
className="ds-fr--flex fr-link fr-link--md"
href="/path"
onClick={[Function]}
target="_self"
>
<span
Expand Down

0 comments on commit 13c7b6f

Please sign in to comment.