Commit 521b167 1 parent 6e6443a commit 521b167 Copy full SHA for 521b167
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -365,11 +365,13 @@ - (BOOL)textInputShouldReturn
365
365
// `onSubmitEditing` is called when "Submit" button
366
366
// (the blue key on onscreen keyboard) did pressed
367
367
// (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
+ }
373
375
374
376
return _blurOnSubmit;
375
377
}
You can’t perform that action at this time.
0 commit comments