Skip to content

Commit

Permalink
Merge pull request #21436 from chiragxarora/fix/21074
Browse files Browse the repository at this point in the history
changes in PressableWithDelayToggle to fix tooltip issue
  • Loading branch information
bondydaa authored Jun 26, 2023
2 parents 3a45fcb + aa876bb commit 468dd6c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/components/Pressable/PressableWithDelayToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,18 @@ function PressableWithDelayToggle(props) {
onPress={updatePressState}
accessibilityLabel={tooltipText}
>
<Tooltip
containerStyles={[styles.flexRow]}
text={tooltipText}
>
<>
<Text
suppressHighlighting
style={props.textStyles}
>
{props.isDelayButtonStateComplete && props.textChecked ? props.textChecked : props.text}
&nbsp;
</Text>
<>
<Text
suppressHighlighting
style={props.textStyles}
>
{props.isDelayButtonStateComplete && props.textChecked ? props.textChecked : props.text}
&nbsp;
</Text>
<Tooltip
containerStyles={[styles.flexRow]}
text={tooltipText}
>
<PressableWithoutFeedback
focusable={false}
accessible={false}
Expand All @@ -125,8 +125,8 @@ function PressableWithDelayToggle(props) {
</>
)}
</PressableWithoutFeedback>
</>
</Tooltip>
</Tooltip>
</>
</PressableView>
);
}
Expand Down

0 comments on commit 468dd6c

Please sign in to comment.