mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-18 05:26:35 +02:00
resolve #1080
This commit is contained in:
parent
1dcd15b869
commit
07f0e2f5ba
|
@ -1456,10 +1456,10 @@ class Choices implements Choices {
|
||||||
PAGE_DOWN_KEY,
|
PAGE_DOWN_KEY,
|
||||||
} = KEY_CODES;
|
} = KEY_CODES;
|
||||||
|
|
||||||
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar && event.key.length === 1) {
|
if (!this._isTextElement && !hasActiveDropdown && wasPrintableChar) {
|
||||||
this.showDropdown();
|
this.showDropdown();
|
||||||
|
|
||||||
if (!this.input.isFocussed) {
|
if (!this.input.isFocussed && event.key.length === 1) {
|
||||||
/*
|
/*
|
||||||
We update the input value with the pressed key as
|
We update the input value with the pressed key as
|
||||||
the input was not focussed at the time of key press
|
the input was not focussed at the time of key press
|
||||||
|
|
Loading…
Reference in a new issue