Skip to content

bug: mad-card expand/collapse button submits a form #81

@Laess3r

Description

@Laess3r

Bug Report

The button used to expand/collapse is not of type "button". This leads any form to be submitted on click.

Expected Behavior

The button must be a button type="button" to avoid submitting forms.

Current Behavior

No type defined, so browser default button type="submit" is assumed and used.

Possible Solution

add type="button" to the collapse/expand button

Steps to Reproduce

Put a mad-card in a form and try to expand/collapse it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions