contact and item focus input issue solved.
This commit is contained in:
parent
7d5fb0f5ed
commit
9269b93e3d
@ -278,6 +278,10 @@ export default {
|
|||||||
this.show.contact_selected = false;
|
this.show.contact_selected = false;
|
||||||
this.contact = {};
|
this.contact = {};
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
this.$refs['input-contact-field-' + this._uid].focus();
|
||||||
|
}.bind(this), 100);
|
||||||
|
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
index: 0,
|
index: 0,
|
||||||
key: '',
|
key: '',
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
autocapitalize="default" autocorrect="ON"
|
autocapitalize="default" autocorrect="ON"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:ref="'input-contact-field-' + _uid"
|
:ref="'input-item-field-' + _uid"
|
||||||
v-model="search"
|
v-model="search"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
@keyup.enter="onInput"
|
@keyup.enter="onInput"
|
||||||
@ -257,6 +257,10 @@ export default {
|
|||||||
|
|
||||||
onItemList() {
|
onItemList() {
|
||||||
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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user