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