Skip to content

Commit

Permalink
fix(keyboard): Change keyboard style during setStyle (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
theproducer authored Nov 30, 2023
1 parent 91da51a commit f5ef4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard/ios/Sources/KeyboardPlugin/Keyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ - (void)onKeyboardWillHide:(NSNotification *)notification

- (void)onKeyboardWillShow:(NSNotification *)notification
{
[self changeKeyboardStyle:self.keyboardStyle];
if (hideTimer != nil) {
[hideTimer invalidate];
}
Expand Down Expand Up @@ -324,6 +323,7 @@ - (void)show:(CAPPluginCall *)call
- (void)setStyle:(CAPPluginCall *)call
{
self.keyboardStyle = [call getString:@"style" defaultValue:@"LIGHT"];
[self changeKeyboardStyle:self.keyboardStyle];
[call resolve];
}

Expand Down

0 comments on commit f5ef4dc

Please sign in to comment.