refactor(v2): lose focus of active sidebar item after click on it (#2656)

This commit is contained in:
Alexey Pyltsyn 2020-04-25 06:59:14 +03:00 committed by GitHub
parent 70f6023adf
commit 71b66f1a42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,8 @@ function DocSidebar(props) {
<DocSidebarItem
key={item.label}
item={item}
onItemClick={() => {
onItemClick={(e) => {
e.target.blur();
setShowResponsiveSidebar(false);
}}
collapsible={sidebarCollapsible}