Describe the bug
When used inside a form, VtmnQuantity "-" and "+" button validate form on click
Steps to reproduce
- Create a form
- Add a validation system on the form
- Add an input with a required value inside the form
- Add a VtmnQuantity inside the form
- Do not fill the input
- Click on the "-" or "+" button of VtmnQuantity
- Form is validated and required input is displayed as "with error"
Expected behavior
VtmnQuantity "-" and "+" buttons should not validate the form on click.
An easy fix would be to add a type="button" directly on these two buttons.
A better way would be to add a default prop type = "button" on VtmnButton, but that could break the way some other components work.
Browsers affected
Chrome
Version affected
"@vtmn/react": "^3.1.2"
Describe the bug
When used inside a form, VtmnQuantity "-" and "+" button validate form on click
Steps to reproduce
Expected behavior
VtmnQuantity "-" and "+" buttons should not validate the form on click.
An easy fix would be to add a type="button" directly on these two buttons.
A better way would be to add a default prop type = "button" on VtmnButton, but that could break the way some other components work.
Browsers affected
Chrome
Version affected
"@vtmn/react": "^3.1.2"