Merge branch 'quantity-fix' into 'master'

fix: quantity decimal value not allow

See merge request mohit.panjvani/crater-web!1297
This commit is contained in:
Mohit Panjwani
2021-12-01 06:57:09 +00:00

View File

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