Input1.focus() in BS5

I put Intup and Button on the form. I put the function:

Button1.onclick=function(){
  Input1.focus();
}

In BS4 everything works fine, but in BS5 there is an error.

Am I doing something wrong?

What error are you getting?

Uncaught RangeError: Maximum call stack size exceeded.
line 8 column 18
Focus
Project1.appstudio.zip (625.0 KB)

OK, thanks.

We have a fix for this in the next build - can you wait?

Yes, I’ll skip the “…focus()” line for now
I’m currently creating a project and it will be a while before I can get it ready.

Thanks for your feedback:)