Do we have an example for Vue 3 composition api to set focus on text input using ref element? I tred in many ways but it fail.
I have 3 options and don’t know it will work well for you or not.
Option 1: bind autofocus=“true” on your input HTMLElement.
Option 2: composition API => [RefName].value.$el.setFocus().then(/* do something there */).
Option 3: bind @ionFocus=“function(name)” on your input HTMLElement and modify it in composition API.
I hope this able to help you out.