Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifier.show looses focus on Textfield in window #22

Open
yozef opened this issue Apr 29, 2016 · 4 comments
Open

Notifier.show looses focus on Textfield in window #22

yozef opened this issue Apr 29, 2016 · 4 comments

Comments

@yozef
Copy link

yozef commented Apr 29, 2016

I wonder if that has been experienced by other developers, but imagine a window with text fields.
When a user has focus on a textfield, on return, a Notifier is shown, after the animation finishes, the keyboard looses focus on the textfield.

@kopiro
Copy link
Contributor

kopiro commented Apr 30, 2016

Hi, can you provide a code example to test ?

@kopiro
Copy link
Contributor

kopiro commented Apr 30, 2016

The standard iOS behaviour is that on return the keyboard lose focus anyway, not?

http://cl.ly/3D1S1W281n2V

@yozef
Copy link
Author

yozef commented Apr 30, 2016

You are right. I'll provide a small sample. I even might have a solution in mind.

@yozef yozef closed this as completed Apr 30, 2016
@yozef yozef reopened this Apr 30, 2016
@yozef
Copy link
Author

yozef commented Apr 30, 2016

When the Notification view closes (slides back up) the keyboard looses focus even after being tapped on (when the notification is fist visible).

.xml:

<TextField id="tLastName" onReturn="go"/>

.js:

function go() {
       var obj = {message: msg};
    if (icon)
        obj.icon = icon;
    else
        obj.icon = '/someimage.png';
    if (OS_ANDROID)
        obj.view = $.vLogin;
    Alloy.Globals.Notifier.show(obj);
}

Result: After the Notifier shows the Notification, it slides back up & the keyboard looses focus even if the textfield gets tapped on after it first displays the notification. I'm guessing the FirstResponder gets allocated to the view that slides up rather than the textfield.

This seems like an issue from Appcelerator: https://jira.appcelerator.org/browse/TIMOB-15652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants