This focuses the address input field when selecting the RS option during sign-in.
The difference between this and @rosano's PR is that it does not focus the input when the widget opens the sign-in form immediately (without the options), because we don't want to mess with whatever other focus operations may be going on at rendering time, in the app that the widget is embedded in.
Sorry for the unrelated code in this PR. I did a quick drive-by refactoring of a function that was also changed in another PR that I just merged. So then I also had to fix the conflict in this one.
Continuation of #93.
This focuses the address input field when selecting the RS option during sign-in.
The difference between this and @rosano's PR is that it does not focus the input when the widget opens the sign-in form immediately (without the options), because we don't want to mess with whatever other focus operations may be going on at rendering time, in the app that the widget is embedded in.