Fix tab index of interactive base

This commit is contained in:
2023-11-30 17:31:38 +01:00
committed by Clément Le Bihan
parent e5acd56b0f
commit 9bce8d74c9
2 changed files with 33 additions and 0 deletions
+1
View File
@@ -242,6 +242,7 @@ const InteractiveBase: React.FC<InteractiveBaseProps> = ({
<Animated.View style={[style, isDisabled ? disableStyle : animatedStyle]}>
<Pressable
focusable={focusable}
tabIndex={focusable ? 0 : -1}
disabled={isDisabled}
onHoverIn={handleMouseEnter}
onPressIn={handlePressIn}