Skip to content

Remove TextInput blurOnSubmit#57393

Open
zoontek wants to merge 1 commit into
react:mainfrom
zoontek:remove-textinput-blur-on-submit
Open

Remove TextInput blurOnSubmit#57393
zoontek wants to merge 1 commit into
react:mainfrom
zoontek:remove-textinput-blur-on-submit

Conversation

@zoontek

@zoontek zoontek commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary:

Removes the blurOnSubmit TextInput prop, deprecated since 0.77 in favor of submitBehavior. Cleans it from the JS API, types, native component spec, and rn-tester examples. Default behavior is unchanged: single-line inputs blur and submit, multiline inputs insert a newline.

See #57384

Changelog:

[GENERAL] [REMOVED] - Remove deprecated TextInput blurOnSubmit prop (use submitBehavior instead)

Test Plan:

  • yarn flow check passes
  • yarn build-types regenerates the API snapshot without blurOnSubmit
  • rn-tester "Submit behavior" example still covers all submitBehavior values

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 1, 2026
@zoontek zoontek mentioned this pull request Jul 1, 2026
8 tasks
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jul 1, 2026
@rozele

rozele commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Please rebase.

@zoontek zoontek force-pushed the remove-textinput-blur-on-submit branch 2 times, most recently from 6622940 to 1922fe8 Compare July 2, 2026 08:27
@zoontek

zoontek commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@rozele

# Conflicts:
#	packages/react-native/ReactNativeApi.d.ts

# Conflicts:
#	packages/react-native/ReactNativeApi.d.ts

# Conflicts:
#	packages/react-native/ReactNativeApi.d.ts
@zoontek zoontek force-pushed the remove-textinput-blur-on-submit branch from 1922fe8 to ac45f41 Compare July 2, 2026 13:06
@meta-codesync

meta-codesync Bot commented Jul 2, 2026

Copy link
Copy Markdown

@Abbondanzo has imported this pull request. If you are a Meta employee, you can view this in D110336776.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants