We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e6443a commit 521b167Copy full SHA for 521b167
Libraries/Text/TextInput/RCTBaseTextInputView.m
@@ -365,11 +365,13 @@ - (BOOL)textInputShouldReturn
365
// `onSubmitEditing` is called when "Submit" button
366
// (the blue key on onscreen keyboard) did pressed
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];
+ if (_blurOnSubmit) {
+ [_eventDispatcher sendTextEventWithType:RCTTextEventTypeSubmit
+ reactTag:self.reactTag
+ text:[self.backedTextInputView.attributedText.string copy]
+ key:nil
373
+ eventCount:_nativeEventCount];
374
+ }
375
376
return _blurOnSubmit;
377
}
0 commit comments