Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Robdel12/DropKick
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed Jul 7, 2015
2 parents bf43cfc + 0dac45b commit 11662b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/dropkick.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ var
* @type string
*
*/
search: "strict"
search: "strict",

/**
* Bubble up the custom change event attached to Dropkick to the original element (select).
*/
bubble: true
},

// Common Utilities
Expand Down Expand Up @@ -744,7 +749,7 @@ Dropkick.prototype = {
this.value = select.value;

if ( !disabled ) {
this.data.select.dispatchEvent( new CustomEvent( "change" ) );
this.data.select.dispatchEvent( new CustomEvent("change", {bubbles: this.data.settings.bubble}));
}

return elem;
Expand Down

0 comments on commit 11662b4

Please sign in to comment.