Skip to content

Form-associated buttons no longer submit correctly #6030

Description

@austinw-fineart

What is affected?

Component

Description

When there are multiple buttons in a form, only the clicked button should submit its name/value.
However, now all Material buttons in a form submit their name/value. In fact, even Material buttons that aren't submit buttons will submit their name/value.
I suspect this regression may have been caused by 082faad

Reproduction

Lit Playground

Workaround

I have not found a workaround.

Is this a regression?

Yes. This used to work, but now it doesn't.

Affected versions

Failing in 2.5.0, worked in 2.4.1

Browser/OS/Node environment

Browser: Chrome 151.0.7922.138
OS: Windows 11
Node version: 24.19.0
npm version: 12.0.2

Activity

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

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