Skip to content

ToggleWrapper buttons unintentionally submit form #1808

Open
@LemonardoD

Description

@LemonardoD

In the packages/react/src/blocks/ToggleWrapper, the two <button> elements do not specify a type. This causes them to default to type="submit", which results in unintended form submissions. This becomes a problem when the editor is placed inside a <form>, because clicking one of these toggle buttons submits the entire form.

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