fix: quantity decimal value not allow

This commit is contained in:
yogesh_gohil
2021-12-01 11:48:32 +05:30
parent f3dad8d48b
commit 0f99568eaf

View File

@ -54,6 +54,7 @@
type="number" type="number"
small small
min="1" min="1"
step="any"
@change="syncItemToStore()" @change="syncItemToStore()"
@input="v$.quantity.$touch()" @input="v$.quantity.$touch()"
/> />
@ -257,7 +258,7 @@ const quantity = computed({
return props.itemData.quantity return props.itemData.quantity
}, },
set: (newValue) => { set: (newValue) => {
updateItemAttribute('quantity', parseInt(newValue)) updateItemAttribute('quantity', parseFloat(newValue))
}, },
}) })