Skip to content

Commit

Permalink
Trigger 'change' event on select element
Browse files Browse the repository at this point in the history
  • Loading branch information
wwilsman committed Nov 6, 2014
1 parent 9c0fb99 commit 601345d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dropkick.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ Dropkick.prototype = {

this.selectedIndex = select.selectedIndex;
this.value = select.value;
this.data.settings.change( this );
this.data.settings.change.call( this );
this.data.select.dispatchEvent( new Event('change') );

return elem;
}
Expand Down
Loading

0 comments on commit 601345d

Please # to comment.