Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Fix #177: Don't close dropdown when clicking scrollbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
arendjr committed Apr 19, 2017
1 parent 66542d2 commit 6d48805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGELOG

- Fix #180: Existing selection highlighted by default on multi-value search results (thanks to
@ahamid).
- Fix #177: Don't close dropdown when clicking scrollbar (thanks to @JEkedorff).

## 3.0.3

Expand Down
6 changes: 4 additions & 2 deletions src/selectivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,11 @@ extend(Selectivity.prototype, {
/**
* @private
*/
_mouseleave: function() {
_mouseleave: function(event) {

toggleClass(this.el, 'hover', false);
if (event.fromElement === this.el) {
toggleClass(this.el, 'hover', false);
}
},

/**
Expand Down

0 comments on commit 6d48805

Please sign in to comment.