|
58 | 58 | increment() { |
59 | 59 | if(! this.isDisabled && this.state < this.maxValue && this.state >= this.minValue){ |
60 | 60 | this.state = parseInt(this.state) + this.steps |
61 | | - $wire.$refresh() |
| 61 | +
|
| 62 | + setTimeout(() => { |
| 63 | + $wire.$refresh(); |
| 64 | + }, 1000); |
| 65 | +
|
62 | 66 | if(this.state == this.maxValue){ |
63 | 67 | this.isIncrementAllowed = false |
64 | 68 | } else { |
|
82 | 86 | }" |
83 | 87 | > |
84 | 88 | <x-filament::input.wrapper |
85 | | - :disabled="$isDisabled" |
86 | | - :inline-prefix="$isPrefixInline" |
87 | | - :inline-suffix="$isSuffixInline" |
88 | | - :prefix="$prefixLabel" |
89 | | - :prefix-actions="$prefixActions" |
90 | | - :prefix-icon="$prefixIcon" |
91 | | - :prefix-icon-color="$getPrefixIconColor()" |
92 | | - :suffix="$suffixLabel" |
93 | | - :suffix-actions="$suffixActions" |
94 | | - :suffix-icon="$suffixIcon" |
95 | | - :suffix-icon-color="$getSuffixIconColor()" |
96 | | - :valid="! $errors->has($getStatePath)" |
| 89 | + :disabled="$isDisabled" |
| 90 | + :inline-prefix="$isPrefixInline" |
| 91 | + :inline-suffix="$isSuffixInline" |
| 92 | + :prefix="$prefixLabel" |
| 93 | + :prefix-actions="$prefixActions" |
| 94 | + :prefix-icon="$prefixIcon" |
| 95 | + :prefix-icon-color="$getPrefixIconColor()" |
| 96 | + :suffix="$suffixLabel" |
| 97 | + :suffix-actions="$suffixActions" |
| 98 | + :suffix-icon="$suffixIcon" |
| 99 | + :suffix-icon-color="$getSuffixIconColor()" |
| 100 | + :valid="! $errors->has($getStatePath)" |
97 | 101 | > |
98 | 102 | <div class="w-full flex justify-between items-center gap-x-5"> |
99 | 103 | <div class="grow"> |
|
0 commit comments