-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type="submit" in fast-button won't work #3534
Comments
Thank you for reporting this @PhilippSonntagORGADATA I can confirm that I have also been able to reproduce this bug with a recent build. We'll investigate this and see if we can determine what is going wrong here and plan out a fix. |
If you need a workaround for this bug, you could use the solution someone wrote at mwc. Sadly, this doesn't seem to work quite good in Blazor because the page will be reloaded anyway. |
Did a bit of digging on this. There are a number of open issues discussing form-associated-custom-element (FACE) submit buttons:
The issues above discuss various approaches supporting FACE components with form submission capabilities and it seems likely the platform will provide this in the future, but right now it is not supported. There are a few approaches I can think of that we can take in the short term: 1.)
|
I agree with you on going with approach 2. Regarding the open question at the end, my thought would be that we require the fast-button to be of type submit in order to add the functionality. So, I'm with you on that as well I think. |
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
The text was updated successfully, but these errors were encountered: