From 6ad627e2f845403344a80f7705c76f261d306d9f Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Sun, 22 Dec 2024 17:48:06 +0300 Subject: [PATCH] fix manually entering the number --- resources/views/quantity.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/quantity.blade.php b/resources/views/quantity.blade.php index c794220..90744d4 100644 --- a/resources/views/quantity.blade.php +++ b/resources/views/quantity.blade.php @@ -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 @@ -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