Skip to content

Commit

Permalink
Fabric: Fixes Numeric TextInput not triggering onSubmitEditing (#48276)
Browse files Browse the repository at this point in the history
Summary:
Fixes #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: #48276

Test Plan: Repro in #48259

Reviewed By: cipolleschi

Differential Revision: D67274739

Pulled By: javache

fbshipit-source-id: 57396c6e1a8ef96a1b29cae4a9aa9b5f48f6080b
  • Loading branch information
zhongwuzw authored and robhogan committed Dec 30, 2024
1 parent d34032b commit 0bcb0c2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ - (void)setDefaultInputAccessoryView

- (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];
}
Expand Down

0 comments on commit 0bcb0c2

Please sign in to comment.