Skip to content

Commit

Permalink
fix(v2): disable focus on clicked sidebar category
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Apr 25, 2020
1 parent 71b66f1 commit fed12e4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function DocSidebarItem({item, onItemClick, collapsible, ...props}) {

const handleItemClick = useCallback((e) => {
e.preventDefault();
e.target.blur();
setCollapsed((state) => !state);
});

Expand Down

0 comments on commit fed12e4

Please sign in to comment.