Skip to content

Commit

Permalink
Merge pull request #21 from lara-zeus/fix-manuall
Browse files Browse the repository at this point in the history
fix manually entering the number
  • Loading branch information
atmonshi authored Dec 22, 2024
2 parents bcca972 + 6ad627e commit 32db691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/quantity.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
isDisabled: {{ $isDisabled ? 'true' : 'false' }},
increment() {
if(! this.isDisabled && this.state < this.maxValue && this.state >= this.minValue){
this.state = this.state + this.steps
this.state = parseInt(this.state) + this.steps
$wire.$refresh()
if(this.state == this.maxValue){
this.isIncrementAllowed = false
Expand All @@ -69,7 +69,7 @@
},
decrement() {
if(! this.isDisabled && this.state > 0 && this.state <= this.maxValue && this.state > this.minValue) {
this.state = this.state - this.steps
this.state = parseInt(this.state) - this.steps
$wire.$refresh()
if(this.state == this.minValue) {
this.isDecrementAllowed = false
Expand Down

0 comments on commit 32db691

Please sign in to comment.