Skip to content

Commit

Permalink
edits on handleMouseEvent func
Browse files Browse the repository at this point in the history
  • Loading branch information
mdfaizan7 committed Jul 31, 2020
1 parent 2d1ca97 commit 159be91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/docusaurus-theme-classic/src/theme/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ function Tabs(props: Props): JSX.Element {
setKeyboardPress(true);
};

const handleMouseEvent = (event) => {
if (event.keyCode === keys.tab) {
setKeyboardPress(false);
}
const handleMouseEvent = () => {
setKeyboardPress(false);
};

useEffect(() => {
Expand Down

0 comments on commit 159be91

Please sign in to comment.