Skip to content

Commit

Permalink
Fix select event
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Moncarey committed Oct 3, 2016
1 parent 042c337 commit c1a6e65
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/js/foundation.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
this.$dropdown.trigger('close');
}
if (!unselect) $option.addClass('selected');else $option.removeClass('selected');
this.$element.trigger('selected.zf.select');
this.$select.trigger('change');
this.$element.focus();
}

Expand Down
2 changes: 1 addition & 1 deletion dist/js/foundation.select.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/js/foundation.select.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@
}
if (!unselect) $option.addClass('selected');
else $option.removeClass('selected');
this.$element.trigger('selected.zf.select');
this.$select.trigger('change');
this.$element.focus();
}

Expand Down

0 comments on commit c1a6e65

Please sign in to comment.