Page 1 of 1

Possible bug: setting textarea focus

Posted: Wed Aug 26, 2015 2:38 pm
by RobertJay

This works for inputs but apparently not textareas:

var t1 = Apperyio("mytextarea");
t1.focus();


Possible bug: setting textarea focus

Posted: Wed Aug 26, 2015 3:52 pm
by RobertJay

UPDATE: Now it's not working in inputs. So let me ask this: is this the correct command that should be used to set focus for both inputs and textareas, and if so, is it supposed to work after an alert() call and within an if block?


Possible bug: setting textarea focus

Posted: Wed Aug 26, 2015 7:11 pm
by Alena Prykhodko

Hello Robert,

Could you please be more specific?
On what event handler do you run this code?
How do you test this?


Possible bug: setting textarea focus

Posted: Wed Aug 26, 2015 7:26 pm
by RobertJay

Thank you Alena, but I cannot provide that right now. Can you just tell me if that is the correct set-focus code and if it is supposed to work after an alert() call and within an if block.


Possible bug: setting textarea focus

Posted: Mon Aug 31, 2015 6:29 am
by Serhii Kulibaba

Hello Robert,

This code works for me:

Apperyio("mytextarea").focus();

Could you check errors in the browser's console?


Possible bug: setting textarea focus

Posted: Tue Sep 01, 2015 2:01 pm
by RobertJay

Thank you Sergiy. The problem does in fact look like it's caused by alert()s . When an alert() appears either before or after the focus command, focus is lost on the target component (both inputs and textareas). I would consider this a bug.