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
Using the wa-checkbox component with a name value pair. The value is not maintained within the component when it is toggled. If the checkbox is toggled off and on again, the value submitted with the form will be "on" instead of the assigned value.
Describe the bug
Using the wa-checkbox component with a name value pair. The value is not maintained within the component when it is toggled. If the checkbox is toggled off and on again, the value submitted with the form will be "on" instead of the assigned value.
To Reproduce
Link to codepen
Results can be viewed in console.
Click the submit button on load and you will get expected behaviour
FormData { test → "myvalue" }
Then uncheck the box and you also get expected behaviour
FormData(0)
Then recheck the box and you get incorrect behaviour (should be "myValue")
FormData { test → "on" }
Browser / OS
Tasks
The text was updated successfully, but these errors were encountered: