Skip to content

Add submitBehavior prop support for MarkdownTextInput on web #744

@daledah

Description

@daledah

Summary

React Native has deprecated the blurOnSubmit prop for TextInput. Migrate deprecated blurOnSubmit to submitBehavior.

Problem

The submitBehavior prop is a modern replacement for the deprecated blurOnSubmit prop in React Native's TextInput component. However, MarkdownTextInput on web currently only supports blurOnSubmit, which prevents applications from using the newer API.

The submitBehavior prop provides more granular control over submission and blur behavior:

  • 'submit': Submit the form without blurring
  • 'blurAndSubmit': Submit the form and blur the input
  • 'newline': Insert a newline instead of submitting (default behavior for multiline inputs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions