Skip to content

Global option for defaulting button type #15989

Closed
@andrewseguin

Description

@andrewseguin

Please describe the feature you would like to request.

Should be an injectable option config to default button to a particular type, e.g. "button"

What is the use-case or motivation for this proposal?

Buttons currently default to type "submit" if not specified. It is very common to want type button by default.

Is there anything else we should know?

We use an injectable option config in autocomplete, which is the pattern we want to use for this feature:
https://github.com/angular/components/blob/master/src/material/autocomplete/autocomplete.ts#L61

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/buttonfeatureThis issue represents a new feature or feature request rather than a bug or bug fixgood first issueThis issue is a good place to start for first time contributors to the projecthelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions