This commit is contained in:
Morez 2022-12-03 09:09:55 -08:00 committed by GitHub
parent 1dcd15b869
commit 07f0e2f5ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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