mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 08:52:19 +02:00
Merge master and rebuild, fix lint error
This commit is contained in:
parent
f1a5dfe2bf
commit
a586eb7744
|
@ -1264,6 +1264,7 @@ var Choices = /** @class */function () {
|
||||||
var hasActiveDropdown = this.dropdown.isActive;
|
var hasActiveDropdown = this.dropdown.isActive;
|
||||||
var hasItems = this.itemList.hasChildren();
|
var hasItems = this.itemList.hasChildren();
|
||||||
var keyString = String.fromCharCode(keyCode);
|
var keyString = String.fromCharCode(keyCode);
|
||||||
|
// eslint-disable-next-line no-control-regex
|
||||||
var wasPrintableChar = /[^\x00-\x1F]/.test(keyString);
|
var wasPrintableChar = /[^\x00-\x1F]/.test(keyString);
|
||||||
var BACK_KEY = constants_1.KEY_CODES.BACK_KEY,
|
var BACK_KEY = constants_1.KEY_CODES.BACK_KEY,
|
||||||
DELETE_KEY = constants_1.KEY_CODES.DELETE_KEY,
|
DELETE_KEY = constants_1.KEY_CODES.DELETE_KEY,
|
||||||
|
@ -1274,7 +1275,7 @@ var Choices = /** @class */function () {
|
||||||
DOWN_KEY = constants_1.KEY_CODES.DOWN_KEY,
|
DOWN_KEY = constants_1.KEY_CODES.DOWN_KEY,
|
||||||
PAGE_UP_KEY = constants_1.KEY_CODES.PAGE_UP_KEY,
|
PAGE_UP_KEY = constants_1.KEY_CODES.PAGE_UP_KEY,
|
||||||
PAGE_DOWN_KEY = constants_1.KEY_CODES.PAGE_DOWN_KEY;
|
PAGE_DOWN_KEY = constants_1.KEY_CODES.PAGE_DOWN_KEY;
|
||||||
if (!this._isTextElement && !hasActiveDropdown && wasAlphaNumericChar) {
|
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar) {
|
||||||
this.showDropdown();
|
this.showDropdown();
|
||||||
if (!this.input.isFocussed) {
|
if (!this.input.isFocussed) {
|
||||||
/*
|
/*
|
||||||
|
|
2
public/assets/scripts/choices.min.js
vendored
2
public/assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1441,6 +1441,7 @@ class Choices implements Choices {
|
||||||
const hasActiveDropdown = this.dropdown.isActive;
|
const hasActiveDropdown = this.dropdown.isActive;
|
||||||
const hasItems = this.itemList.hasChildren();
|
const hasItems = this.itemList.hasChildren();
|
||||||
const keyString = String.fromCharCode(keyCode);
|
const keyString = String.fromCharCode(keyCode);
|
||||||
|
// eslint-disable-next-line no-control-regex
|
||||||
const wasPrintableChar = /[^\x00-\x1F]/.test(keyString);
|
const wasPrintableChar = /[^\x00-\x1F]/.test(keyString);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Reference in a new issue