1
0
mirror of https://github.com/bitwarden/web synced 2026-01-08 11:33:44 +00:00

Validate before submit

This commit is contained in:
Hinton
2022-05-17 22:19:27 +02:00
parent 0dfc8c5a0b
commit 43ca31e0ae
2 changed files with 7 additions and 1 deletions

2
jslib

Submodule jslib updated: be870373d3...7201bdeb5e

View File

@@ -98,6 +98,12 @@ export class AccountComponent {
} }
async submit() { async submit() {
this.formData.markAllAsTouched();
if (!this.formData.valid) {
return;
}
try { try {
const request = new OrganizationUpdateRequest(); const request = new OrganizationUpdateRequest();
request.name = this.formData.get("name").value; request.name = this.formData.get("name").value;