Inputs active
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
<div class="aka-select-menu" v-if="show.item_list">
|
<div class="aka-select-menu" v-if="show.item_list">
|
||||||
<div class="aka-select-search-container">
|
<div class="aka-select-search-container">
|
||||||
<span class="aka-prefixed-input aka-prefixed-input--fluid">
|
<span class="aka-prefixed-input aka-prefixed-input--fluid">
|
||||||
<div class="input-group input-group-merge focused">
|
<div class="input-group input-group-merge">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text">
|
<span class="input-group-text">
|
||||||
<i class="fa fa-search"></i>
|
<i class="fa fa-search"></i>
|
||||||
@ -26,6 +26,7 @@
|
|||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
v-model="search"
|
v-model="search"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
|
:ref="'input-item-field-' + _uid"
|
||||||
@keydown.enter="onItemCreate"
|
@keydown.enter="onItemCreate"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -291,6 +292,10 @@ export default {
|
|||||||
|
|
||||||
showItems() {
|
showItems() {
|
||||||
this.show.item_list = true;
|
this.show.item_list = true;
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
this.$refs['input-item-field-' + this._uid].focus();
|
||||||
|
}.bind(this), 100);
|
||||||
},
|
},
|
||||||
|
|
||||||
onInput() {
|
onInput() {
|
||||||
|
@ -92,8 +92,7 @@ const app = new Vue({
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.currency_symbol.symbol = default_currency_symbol;
|
this.currency_symbol.symbol = default_currency_symbol;
|
||||||
}
|
};
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
Reference in New Issue
Block a user