fix: make min quantity 0 instead of 1

This commit is contained in:
David Wheatley
2021-12-06 22:29:56 +00:00
committed by GitHub
parent 5a7b515a03
commit 8001b2ede9

View File

@ -53,7 +53,7 @@
:content-loading="loading"
type="number"
small
min="1"
min="0"
step="any"
@change="syncItemToStore()"
@input="v$.quantity.$touch()"
@ -352,7 +352,7 @@ const rules = {
required: helpers.withMessage(t('validation.required'), required),
minValue: helpers.withMessage(
t('validation.qty_must_greater_than_zero'),
minValue(1)
minValue(0)
),
maxLength: helpers.withMessage(
t('validation.amount_maxlength'),