Skip to content

Commit

Permalink
Merge branch 'DarrenMack-OD-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jshjohnson committed Mar 29, 2019
2 parents 0580a04 + 63e5b51 commit 899e4b1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
16 changes: 8 additions & 8 deletions public/assets/scripts/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2114,13 +2114,13 @@ function () {
var label = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var replaceChoices = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;

if (!this._isSelectElement || !choices.length || !value) {
if (!this._isSelectElement || !value) {
return this;
} // Clear choices if needed


if (replaceChoices) {
this._clearChoices();
this.clearChoices();
}

this.containerOuter.removeLoadingState();
Expand Down Expand Up @@ -2153,6 +2153,11 @@ function () {

return this;
}
}, {
key: "clearChoices",
value: function clearChoices() {
this._store.dispatch((0, _choices.clearChoices)());
}
}, {
key: "clearStore",
value: function clearStore() {
Expand Down Expand Up @@ -3096,7 +3101,7 @@ function () {
var target = event.target,
shiftKey = event.shiftKey; // If we have our mouse down on the scrollbar and are on IE11...

if (target === this.choiceList && (0, _utils.isIE11)()) {
if (this.choiceList.element.contains(target) && (0, _utils.isIE11)()) {
this._isScrollingOnIe = true;
}

Expand Down Expand Up @@ -3451,11 +3456,6 @@ function () {
});
}
}
}, {
key: "_clearChoices",
value: function _clearChoices() {
this._store.dispatch((0, _choices.clearChoices)());
}
}, {
key: "_addGroup",
value: function _addGroup(_ref15) {
Expand Down
10 changes: 5 additions & 5 deletions public/assets/scripts/choices.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
<meta name="theme-color" content="#ffffff">

<!-- Ignore these -->
<link rel="stylesheet" href="assets/styles/base.min.css?version=6.0.3">
<link rel="stylesheet" href="assets/styles/base.min.css?version=7.0.0">
<!-- End ignore these -->

<!-- Optional includes -->
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=es5,fetch,Element.prototype.classList,requestAnimationFrame,Node.insertBefore,Node.firstChild,Object.assign"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es5%2Ces6%2CArray.prototype.includes%2Cfetch"></script>
<!-- End optional includes -->

<!-- Choices includes -->
<link rel="stylesheet" href="assets/styles/choices.min.css?version=6.0.3">
<script src="assets/scripts/choices.min.js?version=6.0.3"></script>
<link rel="stylesheet" href="assets/styles/choices.min.css?version=7.0.0">
<script src="assets/scripts/choices.min.js?version=7.0.0"></script>
<!-- End Choices includes -->

<!--[if lt IE 9]>
Expand Down Expand Up @@ -344,7 +344,7 @@ <h2>Form interaction</h2>

var textEmailFilter = new Choices('#choices-text-email-filter', {
editItems: true,
addItemFilterFn: (value) => {
addItemFilterFn: function (value) {
if (!value) {
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions public/test/select-multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<meta name="theme-color" content="#ffffff">

<!-- Ignore these -->
<link rel="stylesheet" href="../assets/styles/base.min.css?version=3.0.2">
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3">
<!-- End ignore these -->

<!-- Choices includes -->
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=3.0.2">
<script src="../assets/scripts/choices.min.js?version=2.8.8"></script>
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=6.0.3">
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
<!-- End Choices includes -->
</head>

Expand Down
6 changes: 3 additions & 3 deletions public/test/select-one.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<meta name="theme-color" content="#ffffff">

<!-- Ignore these -->
<link rel="stylesheet" href="../assets/styles/base.min.css?version=3.0.2">
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3">
<!-- End ignore these -->

<!-- Choices includes -->
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=3.0.2">
<script src="../assets/scripts/choices.min.js?version=2.8.8"></script>
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=6.0.3">
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
<!-- End Choices includes -->
</head>

Expand Down
6 changes: 3 additions & 3 deletions public/test/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<meta name="theme-color" content="#ffffff">

<!-- Ignore these -->
<link rel="stylesheet" href="../assets/styles/base.min.css?version=3.0.2">
<link rel="stylesheet" href="../assets/styles/base.min.css?version=6.0.3">
<!-- End ignore these -->

<!-- Choices includes -->
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=3.0.2">
<script src="../assets/scripts/choices.min.js?version=2.8.8"></script>
<link rel="stylesheet" href="../assets/styles/choices.min.css?version=6.0.3">
<script src="../assets/scripts/choices.min.js?version=6.0.3"></script>
<!-- End Choices includes -->
</head>

Expand Down
2 changes: 1 addition & 1 deletion src/scripts/choices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,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;
}

Expand Down

0 comments on commit 899e4b1

Please sign in to comment.