We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ece0461 commit 400f2e8Copy full SHA for 400f2e8
packages/baukasten/src/components/Tabs/Tabs.tsx
@@ -389,7 +389,7 @@ export const Tab: React.FC<TabProps> = ({
389
}
390
};
391
392
- const handleClose = (e: React.MouseEvent) => {
+ const handleClose = (e: React.SyntheticEvent) => {
393
e.stopPropagation();
394
onClose?.(value);
395
@@ -423,7 +423,7 @@ export const Tab: React.FC<TabProps> = ({
423
onKeyDown={(e) => {
424
if (e.key === 'Enter' || e.key === ' ') {
425
e.preventDefault();
426
- handleClose(e as any);
+ handleClose(e);
427
428
}}
429
role="button"
0 commit comments