Skip to content

Commit

Permalink
Fix overzealous alerts
Browse files Browse the repository at this point in the history
Regular alert should not be reported as invalid tabs
  • Loading branch information
lekoala authored and kinglozzer committed Jan 5, 2021
1 parent 97d5614 commit 3453b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/legacy/LeftAndMain.EditForm.js
Expand Up @@ -168,7 +168,7 @@ $.entwine('ss', function($){
}

// Find tab-pane's with decedent validation .alert's
const $invalidTabPanes = this.find('.tab-pane .alert').closest('.tab-pane');
const $invalidTabPanes = this.find('.tab-pane .alert.error').closest('.tab-pane');
if (!$invalidTabPanes.length) {
// If we are at this point it's probably a failed DataObject::validate()
// where there was a general (non-field) error added via ValidationResult::addError()
Expand Down

0 comments on commit 3453b3b

Please sign in to comment.