number-increment works on buy modal and there was much rejoicing...

This commit is contained in:
CuriousMagpie
2022-12-16 16:51:19 -05:00
parent 24032b57f6
commit 4c943b7575
3 changed files with 14 additions and 10 deletions
@@ -19,7 +19,6 @@
v-model="quantity"
class="form-control alignment"
step="1"
@input="$emit('update:quantity', $event.target.selectedAmountToBuy)"
>
</div>
<div
@@ -95,12 +94,6 @@ import svgPositive from '@/assets/svg/positive.svg';
import svgNegative from '@/assets/svg/negative.svg';
export default {
props: {
quantity: {
type: Number,
default: 1,
},
},
data () {
return {
icons: Object.freeze({
@@ -110,9 +103,19 @@ export default {
svgNegative,
}),
item: { },
quantity: 1,
};
},
computed: {
// validateQuantity () {
// const validateQuantity = Number ? Number : NaN;
// return validateQuantity;
// },
},
watch: {
quantity () {
this.$emit('updateQuantity', this.quantity);
},
},
methods: {
},