We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b32926 commit 1837863Copy full SHA for 1837863
src/components/mdInputContainer/mdAutocomplete.vue
@@ -2,7 +2,8 @@
2
<div class="md-autocomplete"
3
@focus="onFocus"
4
@blur="onBlur">
5
- <md-menu :md-offset-x="8" md-offset-y="45"
+ <md-menu :md-offset-x="8"
6
+ md-offset-y="45"
7
ref="menu">
8
<span md-menu-trigger></span>
9
<input class="md-input"
@@ -87,6 +88,12 @@
87
88
this.onInput();
89
this.$emit('selected', this.selected, this.$refs.input.value);
90
},
91
+ onFocus() {
92
+ if (this.parentContainer) {
93
+ this.parentContainer.isFocused = true;
94
+ }
95
+ this.$refs.input.focus();
96
+ },
97
onInput() {
98
this.updateValues();
99
this.$emit('change', this.$refs.input.value);
0 commit comments