console error fixed
This commit is contained in:
parent
7e83aefa37
commit
9885709f89
@ -114,7 +114,10 @@ const app = new Vue({
|
||||
onRefFocus(ref) {
|
||||
let index = this.form.items.length - 1;
|
||||
|
||||
this.$refs['items-' + index + '-' + ref][0].focus();
|
||||
if (this.$refs['items-' + index + '-' + ref] != undefined) {
|
||||
let first_ref = this.$refs['items-' + index + '-' + ref];
|
||||
first_ref != undefined ? first_ref[0].focus() : this.$refs[Object.keys(this.$refs)[0]][0].focus();
|
||||
}
|
||||
},
|
||||
|
||||
onCalculateTotal() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user