Skip to content

Commit

Permalink
Merge pull request #3491 from napley/editor-input-invalid-js
Browse files Browse the repository at this point in the history
fix(editor): check only editor input:invalid
  • Loading branch information
bobdenotter authored Oct 19, 2023
2 parents 6b8b1ee + c146f42 commit 95ac85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/app/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $(document).ready(function() {
** When a field from another group is invalid, show it.
*/
$('#editor button[type="submit"]').click(function() {
$('input:invalid').each(function() {
$('#editor input:invalid').each(function() {
// Find the tab-pane that this element is inside, and get the id
var $closest = $(this).closest('.tab-pane');
var id = $closest.attr('id');
Expand Down

0 comments on commit 95ac85f

Please sign in to comment.