From 66fba942c826d8852480cbab3f8539bf3847b8b1 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Mon, 10 Mar 2025 14:25:56 +0300 Subject: [PATCH] Pull request: ADG-9775 fix disabled button for autofilled login form Merge in DNS/adguard-home from ADG-9775 to master Squashed commit of the following: commit 3544ba8d463d80c69285fba4af1332e80cd2f0c8 Merge: 9631f6c4d 7f9cef948 Author: Ildar Kamalov Date: Mon Mar 10 13:55:27 2025 +0300 Merge branch 'master' into ADG-9775 commit 9631f6c4d4e32a5f241ff30b0db9f51fcc7635dc Author: Ildar Kamalov Date: Mon Mar 10 12:30:25 2025 +0300 add changelog commit 49fa7fe189f69758011cbdf8f78744bef5fcd0a0 Author: Ildar Kamalov Date: Fri Mar 7 17:02:45 2025 +0300 ADG-9775 fix disabled button for autofilled login form --- CHANGELOG.md | 1 + client/src/login/Login/Form.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed62b75a..27b6e990 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Fixed +- Disabled button for autofilled login form. - Formatting of elapsed times less than one millisecond. - Changes to global upstream DNS settings not applying to custom client upstream configurations. - The formatting of large numbers in the clients tables on the *Client settings* page ([#7583]). diff --git a/client/src/login/Login/Form.tsx b/client/src/login/Login/Form.tsx index cff3225f..8709efcd 100644 --- a/client/src/login/Login/Form.tsx +++ b/client/src/login/Login/Form.tsx @@ -21,7 +21,7 @@ const Form = ({ onSubmit, processing }: LoginFormProps) => { control, formState: { isValid }, } = useForm({ - mode: 'onBlur', + mode: 'onChange', defaultValues: { username: '', password: '',