mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
fix(v2): disable focus on clicked sidebar category
This commit is contained in:
parent
71b66f1a42
commit
fed12e49a4
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ function DocSidebarItem({item, onItemClick, collapsible, ...props}) {
|
||||||
|
|
||||||
const handleItemClick = useCallback((e) => {
|
const handleItemClick = useCallback((e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.target.blur();
|
||||||
setCollapsed((state) => !state);
|
setCollapsed((state) => !state);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue