-
Notifications
You must be signed in to change notification settings - Fork 592
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): Change keyboard style during setStyle #1920
Conversation
Released dev build of keyboard with dev version: 6.0.0-dev-1920-20231130T153844.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't fix the reported issue.
The reported issue is when the keyboard is hidden, if you change the style, next time the keyboard appears it still has the old style on iOS 17 devices, and on the second time it appears it has the correct style.
So calling [self changeKeyboardStyle:self.keyboardStyle];
on onKeyboardWillHide
will have no effect since the keyboard is hidden and onKeyboardWillHide
will not be called.
What seems to work is to call [self changeKeyboardStyle:self.keyboardStyle];
inside the - (void)setStyle:(CAPPluginCall *)call
.
Ah right, sorry, I was tunnel visioned in to testing toggling open keyboards back and forth. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This other call to the same method can be removed now
https://github.com/ionic-team/capacitor-plugins/blob/main/keyboard/ios/Sources/KeyboardPlugin/Keyboard.m#L124
Fixes an issue on iOS 17 where setting keyboard style would not apply the new appearance.
closes: #1905