Skip to content

Commit

Permalink
remove validate when blur
Browse files Browse the repository at this point in the history
  • Loading branch information
namhihi237 committed Oct 3, 2023
1 parent 94002fb commit 162d945
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 162d945

Please sign in to comment.