Version 2.8.10

This commit is contained in:
Josh Johnson 2017-07-20 12:06:32 +01:00
parent fd52de1835
commit 04aca852c3
7 changed files with 13 additions and 11 deletions

View file

@ -1,4 +1,4 @@
/*! choices.js v2.8.9 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v2.8.10 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
@ -1306,7 +1306,7 @@ return /******/ (function(modules) { // webpackBootstrap
// If we are clicking on an option
var id = element.getAttribute('data-id');
var choice = this.store.getChoiceById(id);
var passedKeyCode = activeItems[0].keyCode !== null ? activeItems[0].keyCode : null;
var passedKeyCode = activeItems[0] && activeItems[0].keyCode ? activeItems[0].keyCode : null;
var hasActiveDropdown = this.dropdown.classList.contains(this.config.classNames.activeState);
// Update choice keyCode
@ -1725,7 +1725,9 @@ return /******/ (function(modules) { // webpackBootstrap
// If we have a highlighted choice
if (highlighted) {
// add enter keyCode value
activeItems[0].keyCode = enterKey;
if (activeItems[0]) {
activeItems[0].keyCode = enterKey;
}
_this16._handleChoiceAction(activeItems, highlighted);
}
} else if (_this16.isSelectOneElement) {

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.8.9",
"version": "2.8.10",
"description": "A vanilla JS customisable text input/select box plugin",
"main": [
"./assets/scripts/dist/choices.js",

View file

@ -16,7 +16,7 @@
<meta name="theme-color" content="#ffffff">
<!-- Ignore these -->
<link rel="stylesheet" href="assets/styles/css/base.min.css?version=2.8.9">
<link rel="stylesheet" href="assets/styles/css/base.min.css?version=2.8.10">
<!-- End ignore these -->
<!-- Optional includes -->
@ -24,7 +24,7 @@
<!-- End optional includes -->
<!-- Choices includes -->
<link rel="stylesheet" href="assets/styles/css/choices.min.css?version=2.8.9">
<link rel="stylesheet" href="assets/styles/css/choices.min.css?version=2.8.10">
<script src="assets/scripts/dist/choices.min.js?version=2.8.8"></script>
<!-- End Choices includes -->

View file

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

View file

@ -1,4 +1,4 @@
// Example usage: npm --newVersion=2.8.9 run version
// Example usage: npm --newVersion=2.8.10 run version
const fs = require('fs');
const path = require('path');