bug(@vtmn/react): VtmnQuantity "-" and "+" buttons should not validate form instantly #1447
Labels
bug 🐛
Something isn't working
community 👥
As we stopped improvements for this version of Vitamin, this issue needs to be done by the community
React 🔵
Related to React components library
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"
The text was updated successfully, but these errors were encountered: