title: Vue.js 3 use autofocus on input with ref inside a method
body: <p>I worked with Vue2, but I recently try Vue 3.</p>
  <p>I have simple problem:</p>
  <pre><code> &lt;input ref=&quot;myinput&quot; /&gt;
   &lt;button @click=&quot;submitData&quot; /&gt;
  </code></pre>
  <p>I want to set &quot;focus&quot; on &quot;myinput&quot;, inside function &quot;submitData&quot;.
  In Vue 2 it is simple (this.$refs ...), but in Vue 3, they made it complicated.
  I saw example with &quot;setup&quot;, but is no use for me + I think you can only access &quot;value&quot; from element.</p>
  <p>Is there any way to execute &quot;focus&quot; on on element inside methods?</p>