mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 21:27:24 +02:00
refactor(v2): lose focus of active sidebar item after click on it (#2656)
This commit is contained in:
parent
70f6023adf
commit
71b66f1a42
1 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,8 @@ function DocSidebar(props) {
|
|||
<DocSidebarItem
|
||||
key={item.label}
|
||||
item={item}
|
||||
onItemClick={() => {
|
||||
onItemClick={(e) => {
|
||||
e.target.blur();
|
||||
setShowResponsiveSidebar(false);
|
||||
}}
|
||||
collapsible={sidebarCollapsible}
|
||||
|
|
Loading…
Add table
Reference in a new issue