fixed onRefFocus for document add item fire event ( 3764845708 )

This commit is contained in:
Cüneyt Şentürk 2023-02-23 17:47:25 +03:00
parent 7f12a54bcd
commit 75bc117b5f

View File

@ -128,7 +128,12 @@ const app = new Vue({
if (typeof (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();
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();
}
}
},