diff --git a/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm b/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm index f48bb0fa..62cd35c4 100755 --- a/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm +++ b/Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm @@ -556,8 +556,8 @@ - (void)updateEditingState { NSUInteger selectionBase = ((UIWidgetsTextPosition*)_selectedTextRange.start).index; NSUInteger selectionExtent = ((UIWidgetsTextPosition*)_selectedTextRange.end).index; - NSUInteger composingBase = -1; - NSUInteger composingExtent = -1; + NSUInteger composingBase = 0; + NSUInteger composingExtent = 0; if (self.markedTextRange != nil) { composingBase = ((UIWidgetsTextPosition*)self.markedTextRange.start).index; composingExtent = ((UIWidgetsTextPosition*)self.markedTextRange.end).index;