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(scrollView): reset scroll view when focusing non-keyboard element #4007

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

ajcrites
Copy link
Contributor

Focusing a keyboard element sets keyboardActiveElement. If you blur,
this will trigger resetScrollView appropriately.

If you focus a non-keyboard element (such as a checkbox), keyboardActiveElement is set to
null before keyboardHide is called, so resetScrollView is not
triggered.

Mitigate this by keeping track of the last focused element to reset the
scroll view.

Focusing a keyboard element sets `keyboardActiveElement`. If you blur,
this will trigger `resetScrollView` appropriately.

If you focus a non-keyboard element, `keyboardActiveElement` is set to
null *before* `keyboardHide` is called, so `resetScrollView` is not
triggered.

Mitigate this by keeping track of the last focused element to reset the
scroll view.
@amazaud
Copy link

amazaud commented Jul 20, 2015

This issue duplicates with #3927 and #4057.

mlynch added a commit that referenced this pull request Dec 6, 2015
fix(scrollView): reset scroll view when focusing non-keyboard element
@mlynch mlynch merged commit c951e1f into ionic-team:master Dec 6, 2015
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.

3 participants