We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bcca972 + 6ad627e commit 32db691Copy full SHA for 32db691
resources/views/quantity.blade.php
@@ -57,7 +57,7 @@
57
isDisabled: {{ $isDisabled ? 'true' : 'false' }},
58
increment() {
59
if(! this.isDisabled && this.state < this.maxValue && this.state >= this.minValue){
60
- this.state = this.state + this.steps
+ this.state = parseInt(this.state) + this.steps
61
$wire.$refresh()
62
if(this.state == this.maxValue){
63
this.isIncrementAllowed = false
@@ -69,7 +69,7 @@
69
},
70
decrement() {
71
if(! this.isDisabled && this.state > 0 && this.state <= this.maxValue && this.state > this.minValue) {
72
- this.state = this.state - this.steps
+ this.state = parseInt(this.state) - this.steps
73
74
if(this.state == this.minValue) {
75
this.isDecrementAllowed = false
0 commit comments