From 1976843f7589fdb4c70ba2cfc088ca3f55c1f7b8 Mon Sep 17 00:00:00 2001
From: KiruthigaManivannan
 <162679756+KiruthigaManivannan@users.noreply.github.com>
Date: Mon, 17 Jun 2024 00:02:08 +0530
Subject: [PATCH] PM-8482 Change KDF Confirmation no longer has browser
 validation (#9485)

* PM-8482 Change KDF Confirmation no longer has browser validation

* PM-8482 - ChangeKdfConfirmationComponent - use form invalid instead of manual form valid check

---------

Co-authored-by: Jared Snider <jsnider@bitwarden.com>
---
 .../security/change-kdf/change-kdf-confirmation.component.ts   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/web/src/app/auth/settings/security/change-kdf/change-kdf-confirmation.component.ts b/apps/web/src/app/auth/settings/security/change-kdf/change-kdf-confirmation.component.ts
index 6f57fb76eee..0c754e262e1 100644
--- a/apps/web/src/app/auth/settings/security/change-kdf/change-kdf-confirmation.component.ts
+++ b/apps/web/src/app/auth/settings/security/change-kdf/change-kdf-confirmation.component.ts
@@ -41,6 +41,9 @@ export class ChangeKdfConfirmationComponent {
   }
 
   submit = async () => {
+    if (this.form.invalid) {
+      return;
+    }
     this.loading = true;
     await this.makeKeyAndSaveAsync();
     this.platformUtilsService.showToast(