Skip to content

Commit ddbfb4a

Browse files
authored
fix(Toolbar): only prevent keydown default actions in onClick (#4688)
Fixes #4687
1 parent 952fbd0 commit ddbfb4a

File tree

1 file changed

+3
-1
lines changed
  • packages/main/src/components/Toolbar

1 file changed

+3
-1
lines changed

packages/main/src/components/Toolbar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ const Toolbar = forwardRef<HTMLDivElement, ToolbarPropTypes>((props, ref) => {
300300
return;
301301
}
302302
if (e.type === 'click' || isSpaceEnterDown) {
303-
e.preventDefault();
303+
if (isSpaceEnterDown) {
304+
e.preventDefault();
305+
}
304306
onClick(e);
305307
}
306308
}

0 commit comments

Comments
 (0)