Skip to content

Commit

Permalink
Update field-details.blade.php
Browse files Browse the repository at this point in the history
Adds step="any" to input type when type is number to prevent a bug that occurs when number is used for non integer values.
  • Loading branch information
diegotibi authored Jun 28, 2023
1 parent 3062a11 commit 195c897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/components/field-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
</label>
@elseif($isList)
<input type="{{ $inputType }}" style="display: none"
@if($inputType === 'number')step="any"@endif
name="{{ $fullName."[0]" }}" @if($class)class="{{ $class }}"@endif
data-endpoint="{{ $endpointId }}"
data-component="{{ $component }}">
Expand All @@ -50,6 +51,7 @@
data-component="{{ $component }}">
@else
<input type="{{ $inputType }}" style="display: none"
@if($inputType === 'number')step="any"@endif
name="{{ $fullName }}" @if($class)class="{{ $class }}"@endif
data-endpoint="{{ $endpointId }}"
value="{!! (isset($example) && (is_string($example) || is_numeric($example))) ? $example : '' !!}"
Expand Down

0 comments on commit 195c897

Please sign in to comment.