Skip to content

Commit 44313d0

Browse files
duom青源duom青源
authored andcommitted
feat: bugfix
1 parent 851a48c commit 44313d0

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

ios/VariableTextInput.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,14 @@ - (void)preparePlaceholder
156156
}
157157
-(void)keyboardDidShow: (NSNotification *)notif {
158158
//todo
159-
_onFocus(@{@"text": [self.textStorage getPlainString]});
159+
if([self isFirstResponder]){
160+
_onFocus(@{@"text": [self.textStorage getPlainString]});
161+
}
160162
}
161163
-(void)keyboardDidHidden: (NSNotification *)notif {
162-
//todo
163-
_onBlur(@{@"text": [self.textStorage getPlainString]});
164+
if([self isFirstResponder]){
165+
_onBlur(@{@"text": [self.textStorage getPlainString]});
166+
}
164167
}
165168
- (void)setPlaceholder:(NSString *)placeholderText
166169
{

lib/commonjs/VariableTextInputView.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/commonjs/VariableTextInputView.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/module/VariableTextInputView.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)