mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 14:17:16 +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
|
<DocSidebarItem
|
||||||
key={item.label}
|
key={item.label}
|
||||||
item={item}
|
item={item}
|
||||||
onItemClick={() => {
|
onItemClick={(e) => {
|
||||||
|
e.target.blur();
|
||||||
setShowResponsiveSidebar(false);
|
setShowResponsiveSidebar(false);
|
||||||
}}
|
}}
|
||||||
collapsible={sidebarCollapsible}
|
collapsible={sidebarCollapsible}
|
||||||
|
|
Loading…
Add table
Reference in a new issue