From 162d945905379bfe80821e7ccf7e60b9ee3f872b Mon Sep 17 00:00:00 2001 From: Nam Le Date: Tue, 3 Oct 2023 09:02:57 +0700 Subject: [PATCH] remove validate when blur --- src/components/PDFView/PDFPasswordForm.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/PDFView/PDFPasswordForm.js b/src/components/PDFView/PDFPasswordForm.js index 29e6e2c49ec6..42d2202de8b7 100644 --- a/src/components/PDFView/PDFPasswordForm.js +++ b/src/components/PDFView/PDFPasswordForm.js @@ -95,11 +95,6 @@ function PDFPasswordForm({isFocused, isPasswordInvalid, shouldShowLoadingIndicat onSubmit(password); }; - const validateAndNotifyPasswordBlur = () => { - validate(); - onPasswordFieldFocused(false); - }; - return shouldShowForm ? ( onPasswordFieldFocused(true)} - onBlur={validateAndNotifyPasswordBlur} + onBlur={() => onPasswordFieldFocused(false)} autoFocus shouldDelayFocus={shouldDelayFocus} secureTextEntry