Skip to content

Commit 0a23b14

Browse files
duom青源duom青源
duom青源
authored and
duom青源
committed
feat: bugfix
1 parent 5c44f73 commit 0a23b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/VariableTextInput.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ - (void)preparePlaceholder
156156
}
157157
-(void)keyboardDidShow: (NSNotification *)notif {
158158
//todo
159-
if([self isFirstResponder]){
159+
if([self isFirstResponder] && _onFocus){
160160
_onFocus(@{@"text": [self.textStorage getPlainString]});
161161
}
162162
}
163163
-(void)keyboardDidHidden: (NSNotification *)notif {
164-
if([self isFirstResponder]){
164+
if([self isFirstResponder] && _onBlur){
165165
_onBlur(@{@"text": [self.textStorage getPlainString]});
166166
}
167167
}

0 commit comments

Comments
 (0)