Skip to content

Commit

Permalink
fix: tabindex value
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Apr 28, 2020
1 parent 1e54e00 commit ee74e74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ type Props = {
ellipsisOnly?: boolean
horizontal?: BalloonProps['horizontal']
vertical?: BalloonProps['vertical']
tabIndex?: number
}

const tooltipFactory: (balloonTheme: BalloonTheme) => FC<Props> = balloonTheme => ({
Expand All @@ -22,7 +21,6 @@ const tooltipFactory: (balloonTheme: BalloonTheme) => FC<Props> = balloonTheme =
ellipsisOnly = false,
horizontal = 'left',
vertical = 'bottom',
tabIndex = 0,
}) => {
const themes = useTheme()
const [isVisible, setIsVisible] = useState(false)
Expand Down Expand Up @@ -78,7 +76,7 @@ const tooltipFactory: (balloonTheme: BalloonTheme) => FC<Props> = balloonTheme =
onMouseOut={outAction}
onTouchEnd={outAction}
onBlur={outAction}
tabIndex={tabIndex}
tabIndex={0}
>
{isVisible && (
<StyledBalloon horizontal={horizontal} vertical={vertical} className={className}>
Expand Down

0 comments on commit ee74e74

Please sign in to comment.