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 Keyboard Glitch on iOS by Adding Visibility Check to keyboardWillShow Event #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lilsax
Copy link

@Lilsax Lilsax commented Jun 30, 2024

This pull request addresses an issue where the keyboard glitches and causes the keyboardWillShow event to be triggered during certain rerendering scenarios on iOS. The fix involves adding a condition to check if the keyboard is already visible before executing the event handler logic. If the keyboard is already visible, the event handler will simply return without taking any action.

Changes Made

Added a condition to the keyboardWillShow event listener to check if the keyboard is already visible.
If the keyboard is already visible, the event handler will return early, preventing unnecessary updates.

Reason for Change

This change prevents the keyboard from glitching and showing unexpectedly during rerendering scenarios, enhancing the overall user experience and stability of the component.

Testing

Tested on iOS to ensure the keyboard visibility check prevents unnecessary event handling during rerendering. Verified that the keyboard functionality remains intact and responsive to user interactions.

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.

1 participant