Skip to content

Return key doesn't submit modal dialog #6354

@slucaskim

Description

@slucaskim

Expected behavior

When pressing the return key within a modal dialog for a batch action, it should submit the form.

Actual behavior

The modal closes and the page refreshes, and it seems like the form submitted, but it's just a refresh.

How to reproduce

image
Create a batch action modal confirmation, with form fields like above (reference instructions in "Batch Action Forms" here). Then press ENTER after completing form field. The page refreshes, and form is not submitted.

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