Skip to content

Commit

Permalink
fix(ios): onChange event not triggered when typing Chinese Pinyin
Browse files Browse the repository at this point in the history
this bug only affects single line input
  • Loading branch information
wwwcg authored and zealotchen0 committed Oct 27, 2023
1 parent bdc3fa4 commit 6b57bed
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ios/sdk/component/textinput/HippyTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,6 @@ - (BOOL)autoCorrect {
}

- (void)textFieldDidChange {
UITextRange *selectedRange = [_textView markedTextRange];
NSString *newText = [_textView textInRange:selectedRange];
/**获取中文输入法下高亮部分并直接返回不做_onChangeText */
if (newText.length > 0) {
return;
}
// selectedTextRange observer isn't triggered when you type even though the
// cursor position moves, so we send event again here.

if (!self.hippyTag || !_onChangeText) {
return;
}
Expand Down

0 comments on commit 6b57bed

Please sign in to comment.