diff --git a/resources/assets/js/components/AkauntingContactCard.vue b/resources/assets/js/components/AkauntingContactCard.vue index ea8934ba3..714fbe406 100644 --- a/resources/assets/js/components/AkauntingContactCard.vue +++ b/resources/assets/js/components/AkauntingContactCard.vue @@ -278,6 +278,10 @@ export default { this.show.contact_selected = false; this.contact = {}; + setTimeout(function() { + this.$refs['input-contact-field-' + this._uid].focus(); + }.bind(this), 100); + this.$emit('change', { index: 0, key: '', diff --git a/resources/assets/js/components/AkauntingItemButton.vue b/resources/assets/js/components/AkauntingItemButton.vue index 380d66158..d37b9c6eb 100644 --- a/resources/assets/js/components/AkauntingItemButton.vue +++ b/resources/assets/js/components/AkauntingItemButton.vue @@ -23,7 +23,7 @@ class="form-control" autocapitalize="default" autocorrect="ON" :placeholder="placeholder" - :ref="'input-contact-field-' + _uid" + :ref="'input-item-field-' + _uid" v-model="search" @input="onInput" @keyup.enter="onInput" @@ -257,6 +257,10 @@ export default { onItemList() { this.show.item_list = true; + + setTimeout(function() { + this.$refs['input-item-field-' + this._uid].focus(); + }.bind(this), 100); }, onInput() {