#Focus on dynamic inputs

4 messages · Page 1 of 1 (latest)

slate chasm
#

Hi

My app has several inputs and I would like to implement behavior:

'Enter' triggers focus on next input element.

I've tried to use 'onmounted' event for different html tags. May be I could get element by id somehow but don't know how.

Could you help me?

slate chasm
#

How to focus on input element by id? Or from outside of input callback?

bronze copper
#

You can use the use_eval function to run some javascript and to this

#

or use web sys