Skip to content

type="submit" in fast-button won't work #3534

@PhilippSonntagORGADATA

Description

@PhilippSonntagORGADATA

Hello there,
I want to create a button that submits a form, but the type submit seems not to work on buttons.

The packages I used were fast-components and fast-components-msft of which both don't work. I tried to locate an error in the Button component, but everything seems fine. So this might be unwanted behaviour/a bug.

HTML form to reproduce the missing feature/bug

<script type="module" src="https://unpkg.com/@microsoft/fast-components"></script>
<fast-design-system-provider use-defaults>
  <form action="/action_page.php">
    <label for="fname">First name:</label><br>
    <input type="text" id="fname" name="fname" value="John"><br>
    <label for="lname">Last name:</label><br>
    <input type="text" id="lname" name="lname" value="Doe"><br><br>
<!--     <input type="submit" value="Submit"> -->
    <fast-button type="submit" value="Save">Save</fast-button>
  </form>
</fast-design-system-provider>
  • Tried with the newest version of Edge Chromium and Chrome

Thanks for your help and keep up the good work 👍

-Philipp

Metadata

Metadata

Assignees

Labels

area:fast-foundationPertains to fast-foundationbugA bugclosed:doneWork is finishedcommunity:requestIssues specifically reported by a member of the community.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions