Merge pull request #2210 from bengu-thon-mai-mochi/invoice-form-enhancements
Disable non-numeric and negative values for quantity input
This commit is contained in:
commit
9979dbd8e9
14
public/css/custom.css
vendored
14
public/css/custom.css
vendored
@ -1735,3 +1735,17 @@ table .align-items-center td span.badge {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Accordion Header Arrow Finish */
|
/* Accordion Header Arrow Finish */
|
||||||
|
|
||||||
|
/* Disable default html styling for input[type="number] Start */
|
||||||
|
|
||||||
|
.input-number-disabled::-webkit-inner-spin-button,
|
||||||
|
.input-number-disabled::-webkit-outer-spin-button {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-number-disabled {
|
||||||
|
-moz-appearance: textfield;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Disable default html styling for input[type="number] Finish */
|
@ -76,8 +76,10 @@
|
|||||||
@if (!$hideQuantity)
|
@if (!$hideQuantity)
|
||||||
<div>
|
<div>
|
||||||
@stack('quantity_input_start')
|
@stack('quantity_input_start')
|
||||||
<input type="text"
|
<input
|
||||||
class="form-control text-center p-0"
|
type="number"
|
||||||
|
min="0"
|
||||||
|
class="form-control text-center p-0 input-number-disabled"
|
||||||
:name="'items.' + index + '.quantity'"
|
:name="'items.' + index + '.quantity'"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
required="required"
|
required="required"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user