mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Fixes Numeric TextInput not triggering onSubmitEditing (#48276)
Summary: Fixes https://github.com/facebook/react-native/issues/48259 . The paper code like : https://github.com/facebook/react-native/blob/2fee13094b3d384c071978776fd8b7cff0b6530f/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.mm#L777-L784 ## Changelog: [IOS] [FIXED] - Fabric: Fixes Numeric TextInput not triggering onSubmitEditing Pull Request resolved: https://github.com/facebook/react-native/pull/48276 Test Plan: Repro in https://github.com/facebook/react-native/issues/48259 Reviewed By: cipolleschi Differential Revision: D67274739 Pulled By: javache fbshipit-source-id: 57396c6e1a8ef96a1b29cae4a9aa9b5f48f6080b
This commit is contained in:
+2
@@ -643,6 +643,8 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
|
||||
|
||||
- (void)handleInputAccessoryDoneButton
|
||||
{
|
||||
// Ignore the value of whether we submitted; just make sure the submit event is called if necessary.
|
||||
[self textInputShouldSubmitOnReturn];
|
||||
if ([self textInputShouldReturn]) {
|
||||
[_backedTextInputView endEditing:YES];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user