Fix #4509 - Editable dropdown doesn't open when typing on a mobile device
parent
9b6e69f3cb
commit
ab23d57011
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue