Fix #4509 - Editable dropdown doesn't open when typing on a mobile device

pull/4878/head
harundemr 2023-11-25 13:55:49 +03:00
parent 9b6e69f3cb
commit ab23d57011
1 changed files with 6 additions and 1 deletions

View File

@ -317,7 +317,10 @@ export default {
this.$emit('blur', event); this.$emit('blur', event);
}, },
onKeyDown(event) { onKeyDown(event) {
if (this.disabled) { // Android keyboard event
const isAndroidKeyboardEvent = event.isComposing || event.keyCode === 229;
if (this.disabled || isAndroidKeyboardEvent) {
event.preventDefault(); event.preventDefault();
return; return;
@ -402,6 +405,8 @@ export default {
!matched && (this.focusedOptionIndex = -1); !matched && (this.focusedOptionIndex = -1);
this.updateModel(event, value); this.updateModel(event, value);
!this.overlayVisible && this.show();
}, },
onContainerClick(event) { onContainerClick(event) {
if (this.disabled || this.loading) { if (this.disabled || this.loading) {