-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS][NewArch] Numeric TextInput not triggering onSubmitEditing #48259
Comments
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Hi ,may fix in #48276 |
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
Description
When using the new architecture in React Native on iOS, the onSubmitEditing callback is not triggered for a TextInput component when:
keyboardType
is set to "numeric"returnKeyType
is set to "done"Example Code:
<TextInput placeholder="text-input" keyboardType="numeric" onSubmitEditing={() => console.log("on submit")} returnKeyType="done"/>
Steps to reproduce
React Native Version
0.76.3
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer, TurboModule - The New Native Module System
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@simhue7/2a886d?platform=ios
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: