Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/sdk/component/textinput/HippyTextField.m
Original file line number Diff line number Diff line change
@@ -201,6 +201,12 @@ - (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.

0 comments on commit 230c6a6

Please sign in to comment.