Skip to content

Commit

Permalink
refactor(v2): lose focus of active sidebar item after click on it
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Apr 24, 2020
1 parent 70f6023 commit fa2dedd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ function DocSidebar(props) {
<DocSidebarItem
key={item.label}
item={item}
onItemClick={() => {
onItemClick={(e) => {
e.target.blur();
setShowResponsiveSidebar(false);
}}
collapsible={sidebarCollapsible}
Expand Down

0 comments on commit fa2dedd

Please sign in to comment.