Skip to content

Commit 9a3b6b5

Browse files
author
Kubit
committed
Delete default value on tabIndex prop to Icon component
1 parent 35dbb82 commit 9a3b6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/icon/icon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { IconStandAlone } from './iconStandAlone';
1010
import { IIcon } from './types';
1111

1212
const IconBasicComponent = (
13-
{ tabIndex = 0, ...props }: IIcon,
13+
{ ...props }: IIcon,
1414
ref: React.ForwardedRef<HTMLSpanElement>
1515
): JSX.Element | null => {
1616
const device = useMediaDevice();
@@ -36,7 +36,7 @@ const IconBasicComponent = (
3636
data-testid={iconProps.dataTestId}
3737
disabled={disabled}
3838
id={props.id}
39-
tabIndex={tabIndex}
39+
tabIndex={props.tabIndex}
4040
title={props.title || ''}
4141
type={ButtonType.BUTTON}
4242
onClick={onClick}

0 commit comments

Comments
 (0)