Skip to content

Commit

Permalink
Fix broken UI when the error message is shown #2159
Browse files Browse the repository at this point in the history
  • Loading branch information
zahardev committed Dec 10, 2024
1 parent d27af08 commit bd75c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/js/admin-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@

$field.parent().find( '.gv-error-message' ).remove();
if ( error ) {
$( '<div>', { class: 'gv-error-message', text: error } ).insertAfter( $field );
$field.parent().append(
$( '<div>', { class: 'gv-error-message', text: error } )
);
}
},

Expand Down
Loading

0 comments on commit bd75c4a

Please sign in to comment.