Skip to content

Commit f569501

Browse files
committed
Fix form validation when an application password name isn't entered.
1 parent 395cd85 commit f569501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/_enqueues/admin/auth-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
return;
4343
}
4444

45-
if ( 0 === name.length ) {
46-
$appNameField.trigger( 'focus' );
45+
if ( ! $form[ 0 ].checkValidity() ) {
46+
$form[ 0 ].reportValidity();
4747
return;
4848
}
4949

0 commit comments

Comments
 (0)