-
Notifications
You must be signed in to change notification settings - Fork 783
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
Button form attribute does not render/missing after compiled in DOM #2703
Comments
@adamdbradley any idea what might be causing this? I'm happy to take a stab at it if you can point me in the right direction. |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out. Thank you for using Stencil! |
As a workaround I managed to use <button
ref={(btn) => btn?.setAttribute('form', 'form-id-here')}
>
Submit
</button> But it is a little ugly, I know. |
FYI, still having the issue in Stencil @thccorni workaround is working ;) |
Hello guys! The walkaround from @thccorni seems to work (thank you!) If it could help, I debugged a bit the @stencil/core/internal/client/index.js; |
Thanks all! I've confirmed this is an issue with the minimal reproduction case above. I'm going to label this for the team to look into further |
Try adding a unique The PS - I'm not 100% certain of my exact issue, but I know enough to feel confident that EDIT: this may be relevant. |
This also applied to inputs |
This issue is still present in @stencil/core@^4.7.2 We worked around it by checking after render and adding 'form' with
|
A fix for this bug has been published in Stencil |
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
you can see the form attribute is missing after compile in DOM.
Expected behavior:
I want the form attribute to work, so i can handle multiple form submission.
Steps to reproduce:
just add form attribute in tag
Related code:
Other information:
The text was updated successfully, but these errors were encountered: