Skip to content

Commit

Permalink
fix(editor): check only editor input:invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
napley authored Oct 16, 2023
1 parent 6b8b1ee commit c146f42
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 c146f42

Please sign in to comment.