Page 1 of 1

InputText focus

Posted: 25 Jun 2020, 23:10
by jcrisantog
Hi.

How can I focus on an InputText after executing a method ... try the instruction below but it doesn't work

this. $ refs.email.focus ();

Thank you.

Re: InputText focus

Posted: 04 Jul 2020, 10:25
by cagatay.civici
Please try;

Code: Select all

this.$refs.email.$el.focus();

Re: InputText focus

Posted: 02 Jan 2022, 20:45
by colinbes
Did you come right with this?

Looks to me that one has to access first child element after <span> wrapper that InputText uses.

i.e.,

Code: Select all

  const p1 = pin_1.value.$el.children[0]
  p1.focus()
which feels rather messy