Skip to content

Commit

Permalink
add originalEvent to _clearMenus function (fixes twbs#26336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhonisek committed Apr 19, 2018
1 parent 1470e11 commit 673d584
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ const Dropdown = (($) => {
relatedTarget: toggles[i]
}

if (event) {
relatedTarget.original = event.originalEvent;
}

if (!context) {
continue
}
Expand Down

0 comments on commit 673d584

Please sign in to comment.