We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50b145c + 92770d8 commit a12096dCopy full SHA for a12096d
resources/views/quantity.blade.php
@@ -52,8 +52,9 @@
52
minValue: {{ $getMinValue ?? 0 }},
53
isDecrementAllowed: true,
54
isIncrementAllowed: true,
55
+ isDisabled: {{ $isDisabled ? 'true' : 'false' }}
56
increment() {
- if(this.state < this.maxValue && this.state >= this.minValue){
57
+ if(! this.isDisabled && this.state < this.maxValue && this.state >= this.minValue){
58
this.state++
59
$wire.$refresh()
60
if(this.state == this.maxValue){
@@ -65,7 +66,7 @@
65
66
}
67
},
68
decrement() {
- if(this.state > 0 && this.state <= this.maxValue && this.state > this.minValue) {
69
+ if(! this.isDisabled && this.state > 0 && this.state <= this.maxValue && this.state > this.minValue) {
70
this.state--
71
72
if(this.state == this.minValue){
0 commit comments