Skip to content

accessibilityRole="form" does not preserve onSubmit handler #1034

Description

@paularmstrong

The problem
Using accessibilityRole="form" with onSubmit={someHandler}, someHandler is not called when hitting the return key in a nested TextInput.

How to reproduce
Simplified test case: https://codesandbox.io/s/6y37n189kn

Steps to reproduce:

  1. Go to the codesanbox link
  2. Type in the input field
  3. Hit your enter/return key to submit the form

Expected behavior
Expectation is that the onSubmit handler is called and the event is prevented.

Actual behavior
The page is submitted and reloaded.

Environment (include versions). Did this work in previous versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions