From 2fa92520ef88f3d27dedbe03d6c8a85d27561637 Mon Sep 17 00:00:00 2001 From: Darren Mackintosh Date: Tue, 12 Mar 2019 20:27:54 +0000 Subject: [PATCH] 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 --- src/scripts/choices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/choices.js b/src/scripts/choices.js index 24b028b..f334638 100644 --- a/src/scripts/choices.js +++ b/src/scripts/choices.js @@ -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; }