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

fix(alert): focus input after it is ready #13259

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

JasonAsmk
Copy link

Short description of what this resolves:

When creating a new alert which has an input text field it doesn't get focused.

Changes proposed in this pull request:

Wrap the focus() method of the input element in a setTimeout so that the web component
has enough time to initialize. This effectively defers the work until the end of the execution queue.

Ionic Version: 3.8.0

Fixes: #12784

@kensodemann kensodemann self-requested a review October 27, 2017 15:05
@kensodemann kensodemann added this to the 3.9.0 milestone Oct 27, 2017
@kensodemann kensodemann self-assigned this Oct 27, 2017
Copy link
Member

@kensodemann kensodemann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kensodemann kensodemann merged commit e555eae into ionic-team:master Oct 27, 2017
@kensodemann
Copy link
Member

Thanks for the pull request.

@JasonAsmk JasonAsmk deleted the fix/restore-focus-on-input branch October 30, 2017 12:45
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

Successfully merging this pull request may close these issues.

2 participants