setFocus on Vue IonInput

Hi,

I’m trying to set focus in a Vue project using v5.4.1.

Template:

<ion-input ref="inputRef"/>

Code:

this.$refs.inputRef.setFocus()

This doesn’t work. I see the following:

Login.vue?a55b:137 Uncaught (in promise) 
TypeError: this.$refs.inputRef.setFocus is not a function
    at Proxy.mounted (Login.vue?a55b:137)
    at callWithErrorHandling (runtime-core.esm-bundler.js?5c40:154)

Am I missing something?

try this
this.$refs.inputRef.$el.setFocus()

it worked for me on slides and rows

This works! Thanks @sdetweil. I am wondering, should my method work though? Don’t know if this is a bug…

don’t know either. doc says your way should work. but doesn’t.