Skip to content

Commit

Permalink
bubble events with triggerNative
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 29, 2015
1 parent 9da682f commit ba15227
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@

if (typeof Event === 'function') {
// For modern browsers
event = new Event(eventName);
event = new Event(eventName, {
bubbles: true
});
} else {
// For IE since it doesn't support Event constructor
event = document.createEvent('Event');
event.initEvent(eventName);
event.initEvent(eventName, true, false);
}

this[0].dispatchEvent(event);
Expand Down

0 comments on commit ba15227

Please sign in to comment.