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
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
Thanks for your help and keep up the good work 👍
-Philipp