When used inside a form it submits the form
logaretm opened this issue · 2 comments
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
1- Place the verte
component inside a form
element:
<form>
<verte></verte>
</form>
2- Click on the pick button and it will submit the form.
Expected behavior
The default guide button should not submit any forms containing the verte
component. This makes picking the colors impossible in such forms.
Additional context
This issue is caused by the button
element used within the verte component, the button element should have a type="button"
attribute to prevent treating the color indication button as a submit button.
Looks like this was already fixed a while ago, we didn't tag a release until then.
nvm, I'm blind. The button in question is the guide button not the submit button.