Skip to content

Commit

Permalink
feat: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
duom青源 authored and duom青源 committed Jun 25, 2023
1 parent 5c44f73 commit 0a23b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/VariableTextInput.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ - (void)preparePlaceholder
}
-(void)keyboardDidShow: (NSNotification *)notif {
//todo
if([self isFirstResponder]){
if([self isFirstResponder] && _onFocus){
_onFocus(@{@"text": [self.textStorage getPlainString]});
}
}
-(void)keyboardDidHidden: (NSNotification *)notif {
if([self isFirstResponder]){
if([self isFirstResponder] && _onBlur){
_onBlur(@{@"text": [self.textStorage getPlainString]});
}
}
Expand Down

0 comments on commit 0a23b14

Please sign in to comment.