Updated Choices.js

Fixes scrollbar issue in IE11. There is an EDGE-CASE where-by if a user were to select the same option twice, the dropdown doesn't go away. This is, however a very extreme case and we are on the right track
This commit is contained in:
Darren Mackintosh 2019-03-12 20:27:54 +00:00 committed by GitHub
parent bbbc31594c
commit 2fa92520ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1386,7 +1386,7 @@ class Choices {
_onMouseDown(event) {
const { target, shiftKey } = event;
// If we have our mouse down on the scrollbar and are on IE11...
if (target === this.choiceList && isIE11()) {
if (this.choiceList.element.contains(target) && isIE11()) {
this._isScrollingOnIe = true;
}