We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c44f73 commit 0a23b14Copy full SHA for 0a23b14
ios/VariableTextInput.m
@@ -156,12 +156,12 @@ - (void)preparePlaceholder
156
}
157
-(void)keyboardDidShow: (NSNotification *)notif {
158
//todo
159
- if([self isFirstResponder]){
+ if([self isFirstResponder] && _onFocus){
160
_onFocus(@{@"text": [self.textStorage getPlainString]});
161
162
163
-(void)keyboardDidHidden: (NSNotification *)notif {
164
+ if([self isFirstResponder] && _onBlur){
165
_onBlur(@{@"text": [self.textStorage getPlainString]});
166
167
0 commit comments