Having trouble adding style to the $refs attribute. I keep getting an error message saying "Cannot set property 'cssText' of undefined." Is there a way to accomplish this task? I haven't come across anything similar to this issue before.
this.$refs['ticketCode_'+this.resoTrans_id].style.cssText =
"background-color:#66BB6A !important; border:1px solid #66BB6A !important; color:#fff !important;";
Interestingly, when printing out without using .style, everything seems to work fine:
console.log(this.$refs['ticketCode_'+this.resoTrans_id])
VueComponent {_uid: 493, _isVue: true, $options: