Skip to content

Commit

Permalink
Merge pull request #28675 from namhihi237/fix-28195-remove-validate-b…
Browse files Browse the repository at this point in the history
…lur-password-pdf

remove validate when blur
  • Loading branch information
aldo-expensify authored Oct 5, 2023
2 parents 040ba7b + 162d945 commit 5e4550b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/PDFView/PDFPasswordForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ function PDFPasswordForm({isFocused, isPasswordInvalid, shouldShowLoadingIndicat
onSubmit(password);
};

const validateAndNotifyPasswordBlur = () => {
validate();
onPasswordFieldFocused(false);
};

return shouldShowForm ? (
<ScrollView
keyboardShouldPersistTaps="handled"
Expand All @@ -126,7 +121,7 @@ function PDFPasswordForm({isFocused, isPasswordInvalid, shouldShowLoadingIndicat
onSubmitEditing={submitPassword}
errorText={errorText}
onFocus={() => onPasswordFieldFocused(true)}
onBlur={validateAndNotifyPasswordBlur}
onBlur={() => onPasswordFieldFocused(false)}
autoFocus
shouldDelayFocus={shouldDelayFocus}
secureTextEntry
Expand Down

0 comments on commit 5e4550b

Please sign in to comment.