Bring back macOS _blurOnSubmit check for -[RCTBaseTextInputView textInputShouldReturn]
This commit is contained in:
Родитель
1b425ac621
Коммит
defd1a9a7f
|
@ -413,11 +413,17 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithFrame:(CGRect)frame)
|
||||||
// `onSubmitEditing` is called when "Submit" button
|
// `onSubmitEditing` is called when "Submit" button
|
||||||
// (the blue key on onscreen keyboard) did pressed
|
// (the blue key on onscreen keyboard) did pressed
|
||||||
// (no connection to any specific "submitting" process).
|
// (no connection to any specific "submitting" process).
|
||||||
[_eventDispatcher sendTextEventWithType:RCTTextEventTypeSubmit
|
#if TARGET_OS_OSX // [TODO(macOS Candidate ISS#2710739)
|
||||||
reactTag:self.reactTag
|
if (_blurOnSubmit) {
|
||||||
text:[self.backedTextInputView.attributedText.string copy]
|
#endif // ]TODO(macOS Candidate ISS#2710739)
|
||||||
key:nil
|
[_eventDispatcher sendTextEventWithType:RCTTextEventTypeSubmit
|
||||||
eventCount:_nativeEventCount];
|
reactTag:self.reactTag
|
||||||
|
text:[self.backedTextInputView.attributedText.string copy]
|
||||||
|
key:nil
|
||||||
|
eventCount:_nativeEventCount];
|
||||||
|
#if TARGET_OS_OSX // [TODO(macOS Candidate ISS#2710739)
|
||||||
|
}
|
||||||
|
#endif // ]TODO(macOS Candidate ISS#2710739)
|
||||||
|
|
||||||
return _blurOnSubmit;
|
return _blurOnSubmit;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче