diff --git a/doric-iOS/Pod/Classes/Shader/DoricInputNode.m b/doric-iOS/Pod/Classes/Shader/DoricInputNode.m index e78b7b9c..925a161a 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricInputNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricInputNode.m @@ -227,6 +227,8 @@ - (BOOL)textViewShouldEndEditing:(UITextView *)textView { } - (void)textViewDidChange:(UITextView *)textView { + if (textView.markedTextRange) return; + if (self.maxLength) { UITextRange *selectedRange = [textView markedTextRange]; UITextPosition *pos = [textView positionFromPosition:selectedRange.start offset:0];