Skip to content

Commit

Permalink
fixes issue #527
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Jun 10, 2015
1 parent 7377979 commit 2e3c8e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js-webshim/dev/shims/form-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ webshims.register('form-validation', function($, webshims, window, document, und
var jElm = $(e.target);


if(!firstEvent){
if(!firstEvent && !$.find.matchesSelector(e.target, 'form, fieldset') ){
//trigger firstinvalid
firstEvent = $.Event('firstinvalid');
jElm.addClass('first-invalid').trigger(firstEvent);
Expand Down
Loading

0 comments on commit 2e3c8e1

Please sign in to comment.