fixed onRefFocus for document add item fire event ( 3764845708 )
This commit is contained in:
parent
7f12a54bcd
commit
75bc117b5f
@ -128,7 +128,12 @@ const app = new Vue({
|
|||||||
|
|
||||||
if (typeof (this.$refs['items-' + index + '-' + ref]) !== 'undefined') {
|
if (typeof (this.$refs['items-' + index + '-' + ref]) !== 'undefined') {
|
||||||
let first_ref = this.$refs['items-' + index + '-' + ref];
|
let first_ref = this.$refs['items-' + index + '-' + ref];
|
||||||
first_ref != undefined ? first_ref[0].focus() : this.$refs[Object.keys(this.$refs)[0]][0].focus();
|
|
||||||
|
if (first_ref != undefined) {
|
||||||
|
first_ref[0].focus();
|
||||||
|
} else if (this.$refs[Object.keys(this.$refs)[0]] != undefined) {
|
||||||
|
this.$refs[Object.keys(this.$refs)[0]][0].focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user