Skip to content

Commit

Permalink
Add number restriction to quantity input
Browse files Browse the repository at this point in the history
  • Loading branch information
benguozakinci@gmail.com authored and benguozakinci@gmail.com committed Jul 30, 2021
1 parent b748d44 commit 5d4fd9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class="form-control"
@if (!$hideQuantity)
<div>
@stack('quantity_input_start')
<input type="text"
<input
type="number"
min="0"
class="form-control text-center p-0"
:name="'items.' + index + '.quantity'"
autocomplete="off"
Expand Down

0 comments on commit 5d4fd9f

Please sign in to comment.