From d3d0ec58936da543777d89cf977ebdb1a3604398 Mon Sep 17 00:00:00 2001 From: hwonda Date: Tue, 19 Mar 2024 23:28:47 +0900 Subject: [PATCH] fix: stop spinner when email validation by Promise fails --- react-multi-email/ReactMultiEmail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-multi-email/ReactMultiEmail.tsx b/react-multi-email/ReactMultiEmail.tsx index 078557d..6b4d5e6 100644 --- a/react-multi-email/ReactMultiEmail.tsx +++ b/react-multi-email/ReactMultiEmail.tsx @@ -160,10 +160,10 @@ export function ReactMultiEmail(props: IReactMultiEmailProps) { setSpinning(true); if ((await validateEmail?.(value)) === true) { addEmails(value); - setSpinning(false); } else { inputValue = value; } + setSpinning(false); } } else { inputValue = value;