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
  • Loading branch information
wwwcg authored and hippy-actions[bot] committed Dec 26, 2023
1 parent 0bc3f09 commit f37d667
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,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 f37d667

Please sign in to comment.