Skip to content

Commit

Permalink
Merge pull request #20704 from HezekielT/Fix---mWeb---Chat---Cancel-b…
Browse files Browse the repository at this point in the history
…utton-must-be-pressed-two-times
  • Loading branch information
thienlnam authored Jun 13, 2023
2 parents dc13ba0 + 0ee83ba commit fb1aec2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Pressable/PressableWithFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ const PressableWithFeedbackPropTypes = {
* @default variables.hoverDimValue
*/
hoverDimmingValue: propTypes.number,
/**
* Used to locate this view from native classes.
*/
nativeID: propTypes.string,
};

const PressableWithFeedbackDefaultProps = {
..._.omit(GenericPressablePropTypes.defaultProps, omittedProps),
pressDimmingValue: variables.pressDimValue,
hoverDimmingValue: variables.hoverDimValue,
nativeID: '',
wrapperStyle: [],
};

Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ class ReportActionItemMessageEdit extends React.Component {
{(hovered) => (
<PressableWithFeedback
onPress={this.deleteDraft}
nativeID={this.cancelButtonID}
style={styles.chatItemSubmitButton}
accessibilityRole="button"
accessibilityLabel={this.props.translate('common.close')}
Expand Down

0 comments on commit fb1aec2

Please sign in to comment.