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.
InputText focus
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please try;
Code: Select all
this.$refs.email.$el.focus();
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.,
which feels rather messy
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()
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests