You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<wa-icon-button> does not seem to trigger the form submit event. Adding type="submit" works for <wa-button> but not <wa-icon-button>.
To Reproduce
Steps to reproduce the behavior:
Create a page with the latest WA CSS and JS and insert a simple form:
<h3>Form</h3><formaction="/delete" method="post" onsubmit="return confirm('Are you sure?');"><wa-icon-buttonname="trash-can" variant="regular" label="Delete"></wa-icon-button><buttontype="submit">Delete</button></form>
If you click the normal 'Delete' button, the confirm prompt appears.
If you click the Icon button, nothing happens.
My workaround is to add onclick="this.parentElement.requestSubmit()" but it would be more intuitive to have the icon button behave the same as the button and wa-button.
Demo
CodePen login was borked so I could not save my Pen. It should only take a moment to reproduce with the code above though.
Screenshots
If applicable, add screenshots to help explain the bug.
Browser / OS
OS: Mac OS X Sequoia
Browser: Chrome
Browser version: 132.0.6834.160
Additional information
Provide any additional information about the bug here.
The text was updated successfully, but these errors were encountered:
Describe the bug
<wa-icon-button>
does not seem to trigger the form submit event. Addingtype="submit"
works for<wa-button>
but not<wa-icon-button>
.To Reproduce
Steps to reproduce the behavior:
Create a page with the latest WA CSS and JS and insert a simple form:
If you click the normal 'Delete' button, the confirm prompt appears.
If you click the Icon button, nothing happens.
My workaround is to add
onclick="this.parentElement.requestSubmit()"
but it would be more intuitive to have the icon button behave the same as the button and wa-button.Demo
CodePen login was borked so I could not save my Pen. It should only take a moment to reproduce with the code above though.
Screenshots
If applicable, add screenshots to help explain the bug.
Browser / OS
Additional information
Provide any additional information about the bug here.
The text was updated successfully, but these errors were encountered: