File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -365,11 +365,13 @@ - (BOOL)textInputShouldReturn
365365 // `onSubmitEditing` is called when "Submit" button
366366 // (the blue key on onscreen keyboard) did pressed
367367 // (no connection to any specific "submitting" process).
368- [_eventDispatcher sendTextEventWithType: RCTTextEventTypeSubmit
369- reactTag: self .reactTag
370- text: [self .backedTextInputView.attributedText.string copy ]
371- key: nil
372- eventCount: _nativeEventCount];
368+ if (_blurOnSubmit) {
369+ [_eventDispatcher sendTextEventWithType: RCTTextEventTypeSubmit
370+ reactTag: self .reactTag
371+ text: [self .backedTextInputView.attributedText.string copy ]
372+ key: nil
373+ eventCount: _nativeEventCount];
374+ }
373375
374376 return _blurOnSubmit;
375377}
You can’t perform that action at this time.
0 commit comments