Version 2.7.2

This commit is contained in:
Josh Johnson 2017-02-10 09:02:10 +00:00
parent 6abeb65c95
commit f485814dd0
6 changed files with 14 additions and 9 deletions

View file

@ -1,4 +1,4 @@
/*! choices.js v2.7.1 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v2.7.2 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@ -1344,6 +1344,7 @@ return /******/ (function(modules) { // webpackBootstrap
return function (results, value, label) {
if (!results || !value) return;
var parsedResults = (0, _utils.isType)('Object', results) ? [results] : results;
if (parsedResults && (0, _utils.isType)('Array', parsedResults) && parsedResults.length) {
@ -1359,7 +1360,11 @@ return /******/ (function(modules) { // webpackBootstrap
_this16._addChoice(isSelected, isDisabled, result[value], result[label]);
}
});
} else {
// No results, remove loading state
_this16._handleLoadingState(false);
}
_this16.containerOuter.removeAttribute('aria-busy');
};
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{
"name": "choices.js",
"version": "2.7.1",
"version": "2.7.2",
"description": "A vanilla JS customisable text input/select box plugin",
"main": [
"./assets/scripts/dist/choices.js",

View file

@ -15,7 +15,7 @@
<meta name="theme-color" content="#ffffff">
<!-- Ignore these -->
<link rel="stylesheet" href="assets/styles/css/base.min.css?version=2.7.1">
<link rel="stylesheet" href="assets/styles/css/base.min.css?version=2.7.2">
<!-- End ignore these -->
<!-- Optional includes -->
@ -23,8 +23,8 @@
<!-- End optional includes -->
<!-- Choices includes -->
<link rel="stylesheet" href="assets/styles/css/choices.min.css?version=2.7.1">
<script src="assets/scripts/dist/choices.min.js?version=2.7.1"></script>
<link rel="stylesheet" href="assets/styles/css/choices.min.css?version=2.7.2">
<script src="assets/scripts/dist/choices.min.js?version=2.7.2"></script>
<!-- End Choices includes -->
<!--[if lt IE 9]>

View file

@ -1,6 +1,6 @@
{
"name": "choices.js",
"version": "2.7.1",
"version": "2.7.2",
"description": "A vanilla JS customisable text input/select box plugin",
"main": "./assets/scripts/dist/choices.min.js",
"scripts": {