Skip to content

Commit

Permalink
Version 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtriff committed Jan 3, 2022
1 parent ce3d111 commit 3d42067
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "choices.js",
"version": "9.1.0",
"version": "10.0.0",
"description": "A vanilla JS customisable text input/select box plugin",
"main": "./public/assets/scripts/choices.js",
"types": "./public/types/src/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions public/assets/scripts/choices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! choices.js v9.1.0 | © 2021 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v10.0.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -1390,7 +1390,7 @@ function () {
};

Choices.prototype._handleSearch = function (value) {
if (!value || !this.input.isFocussed) {
if (!this.input.isFocussed) {
return;
}

Expand All @@ -1402,7 +1402,7 @@ function () {
return !option.active;
}); // Check that we have a value to search and the input was an alphanumeric character

if (value && value.length >= searchFloor) {
if (value !== null && typeof value !== 'undefined' && value.length >= searchFloor) {
var resultCount = searchChoices ? this._searchChoices(value) : 0; // Trigger search event

this.passedElement.triggerEvent(constants_1.EVENTS.search, {
Expand Down
2 changes: 1 addition & 1 deletion public/assets/scripts/choices.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/types/src/scripts/choices.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/types/src/scripts/interfaces/options.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import IFuseOptions from 'fuse.js';
import Fuse from 'fuse.js';
import { Choices } from './choices';
import { Choice } from './choice';
import { ClassNames } from './class-names';
Expand Down Expand Up @@ -410,7 +410,7 @@ export interface Options {
/**
* Choices uses the great Fuse library for searching. You can find more options here: https://fusejs.io/api/options.html
*/
fuseOptions: IFuseOptions<Choices>;
fuseOptions: Fuse.IFuseOptions<Choices>;
/**
* Function to run once Choices initialises.
*
Expand Down

0 comments on commit 3d42067

Please sign in to comment.