File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
ios/Capacitor/Capacitor/Plugins Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ - (void)onKeyboardWillHide:(NSNotification *)notification
116
116
[self .bridge triggerWindowJSEventWithEventName: @" keyboardWillHide" ];
117
117
[self notifyListeners: @" keyboardWillHide" data: nil ];
118
118
}];
119
+ [[NSRunLoop currentRunLoop ] addTimer: hideTimer forMode: NSRunLoopCommonModes ];
119
120
}
120
121
121
122
- (void )onKeyboardWillShow : (NSNotification *)notification
@@ -171,7 +172,7 @@ - (void)setKeyboardHeight:(int)height delay:(NSTimeInterval)delay
171
172
if (delay == 0 ) {
172
173
[self _updateFrame ];
173
174
} else {
174
- [weakSelf performSelector: action withObject: nil afterDelay: delay];
175
+ [weakSelf performSelector: action withObject: nil afterDelay: delay inModes: @[ NSRunLoopCommonModes ] ];
175
176
}
176
177
}
177
178
You can’t perform that action at this time.
0 commit comments