Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Modal-header default closeButton has no type='button' causing forms to treat it as a submit incorrectly #57

@wanderingcoder2

Description

@wanderingcoder2

the default closeButton for modal-header renders as <button class="close" aria-label="Close Modal"><span aria-hidden="true">×</span></button>

can you please change the default to type="button" so it would be:
<button type="button" class="close" aria-label="Close Modal"><span aria-hidden="true">×</span></button>

When using forms this button is treated as a submit incorrectly because the type was never specified and the default for many browsers is 'submit'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions