mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-03 22:33:12 +02:00
Merge 905d2e8904
into 5dbea2825a
This commit is contained in:
commit
d2c7265c7d
|
@ -1,4 +1,4 @@
|
|||
/*! choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
/*! choices.js v10.2.0 | © 2023 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
|
@ -1275,7 +1275,7 @@ var Choices = /** @class */function () {
|
|||
DOWN_KEY = constants_1.KEY_CODES.DOWN_KEY,
|
||||
PAGE_UP_KEY = constants_1.KEY_CODES.PAGE_UP_KEY,
|
||||
PAGE_DOWN_KEY = constants_1.KEY_CODES.PAGE_DOWN_KEY;
|
||||
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar) {
|
||||
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar && event.key.length === 1) {
|
||||
this.showDropdown();
|
||||
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
|
@ -1 +1 @@
|
|||
/*! choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
/*! choices.js v10.2.0 | © 2023 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1456,7 +1456,12 @@ class Choices implements Choices {
|
|||
PAGE_DOWN_KEY,
|
||||
} = KEY_CODES;
|
||||
|
||||
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar) {
|
||||
if (
|
||||
!this._isTextElement &&
|
||||
!hasActiveDropdown &&
|
||||
wasPrintableChar &&
|
||||
event.key.length === 1
|
||||
) {
|
||||
this.showDropdown();
|
||||
|
||||
if (!this.input.isFocussed) {
|
||||
|
|
Loading…
Reference in a new issue