title: VueJs - How to access DOM property of an element from $refs
body: <p>I have an element</p>
  
  <pre><code>&lt;tbody ref="tbody"&gt;
    &lt;tr class="row" :ref="userIndex" v-for="(userData, uid, userIndex) in users" :key="uid"&gt;
  </code></pre>
  
  <p>in my template. I need to access/edit the DOM property like scrollTop, verticalOffset of <code>&lt;tr&gt;</code> element. How can I achieve this?</p>
  
  <p>I have tried to access using <code>this.$refs[userIndex][0].$el</code> but its not working. I can see all the properties in the console but I am unable to access them. However <code>this.$refs.tbody.scrollTop</code> works.</p>
  
  <p>Below is the snap showing <code>console.log(this.$refs)</code><a href="https://i.stack.imgur.com/tS12R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tS12R.png" alt="enter image description here"></a></p>
  
  <p><code>console.log(this.$refs[userIndex])</code>
  <a href="https://i.stack.imgur.com/5ITLs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ITLs.png" alt="enter image description here"></a></p>
  
  <p><code>console.log(this.$refs[userIndex][0])</code>
  <a href="https://i.stack.imgur.com/24lRB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/24lRB.png" alt="enter image description here"></a></p>
  
  <p>As you can see when I use <code>this.$refs[userIndex][0]</code> I don't see the DOM properties</p>