fix: 🚑️ decimal input steps to number inputs

This commit is contained in:
IceToast 2022-06-16 15:32:42 +02:00 committed by IceToast
parent 7e17bb62ea
commit 3723b527f5
No known key found for this signature in database
GPG key ID: 1464353E063A5B97
2 changed files with 5 additions and 2 deletions

View file

@ -66,6 +66,7 @@
<label for="price">{{__('Price in')}} {{CREDITS_DISPLAY_NAME}}</label>
<input value="{{$product->price ?? old('price')}}" id="price" name="price" step=".01"
type="number"
step="0.0001"
class="form-control @error('price') is-invalid @enderror"
required="required">
@error('price')

View file

@ -75,8 +75,10 @@
</div>
<div class="form-group">
<label for="price">{{__('Price in')}} {{ CREDITS_DISPLAY_NAME }}</label>
<input value="{{ $product->price }}" id="price" name="price" type="number" step=".01"
<label for="price">{{__('Price in')}} {{CREDITS_DISPLAY_NAME}}</label>
<input value="{{$product->price}}" id="price" name="price"
type="number"
step="0.0001"
class="form-control @error('price') is-invalid @enderror"
required="required">
@error('price')