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

Fixed onToggle to return false upon keyboard close #14

Merged
merged 1 commit into from
Mar 27, 2016
Merged

Fixed onToggle to return false upon keyboard close #14

merged 1 commit into from
Mar 27, 2016

Conversation

danvass
Copy link
Contributor

@danvass danvass commented Mar 27, 2016

Previously it always returned true regardless of state.

Previously it always returned true regardless of state.
@Andr3wHur5t
Copy link
Owner

Just tested, this causes jumping when the keyboard closes on iOS.

@danvass
Copy link
Contributor Author

danvass commented Mar 27, 2016

@Andr3wHur5t What do you mean? It seems to work normally for me except now toggleState is returning a different value.

@Andr3wHur5t
Copy link
Owner

I'm looking into a fix, probably need to check if the height is 0.

@Andr3wHur5t
Copy link
Owner

@dvassilev this fix seems to be causing an issue with the hide animation. On master its smooth, on this branch it jumps down after the keyboard finishes its transition.

@danvass
Copy link
Contributor Author

danvass commented Mar 27, 2016

@Andr3wHur5t Odd, it remains a smooth transition for me.

@Andr3wHur5t
Copy link
Owner

@dvassilev my bad, seems the simulator was sending multiple events. Restarting the simulator fixed it.

Looks good 👍

@Andr3wHur5t Andr3wHur5t merged commit d669018 into Andr3wHur5t:master Mar 27, 2016
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.

None yet

3 participants