Skip to content

Commit

Permalink
Merge pull request Expensify#46641 from JKobrynski/fixErrorDismiss
Browse files Browse the repository at this point in the history
  • Loading branch information
blimpich authored Aug 5, 2024
2 parents 0ee0fe3 + e5b7816 commit 8766242
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/FeedbackSurvey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ function FeedbackSurvey({title, description, onSubmit, optionRowStyles, footerTe
onSubmit(reason.key, note.trim());
};

const handleSetNote = (text: string) => {
setNote(text);

if (isNoteRequired && shouldShowReasonError) {
setShouldShowReasonError(false);
}
};

return (
<View style={[styles.flexGrow1, styles.justifyContentBetween]}>
<View style={styles.mh5}>
Expand All @@ -91,7 +99,7 @@ function FeedbackSurvey({title, description, onSubmit, optionRowStyles, footerTe
label={translate('feedbackSurvey.additionalInfoInputLabel')}
accessibilityLabel={translate('feedbackSurvey.additionalInfoInputLabel')}
role={CONST.ROLE.PRESENTATION}
onChangeText={setNote}
onChangeText={handleSetNote}
value={note}
/>
</>
Expand Down

0 comments on commit 8766242

Please sign in to comment.