Skip to content

Commit

Permalink
Fix example display
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Nov 2, 2021
1 parent 553530f commit 43f3750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/field-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<input type="{{ $inputType }}"
name="{{ $fullName }}"
data-endpoint="{{ $endpointId }}"
value="{{ $example ?? '' }}"
value="{!! (isset($example) && (is_string($example) || is_numeric($example))) ? $example : '' !!}"
data-component="{{ $component }}" hidden>
@endif
@endif
Expand Down

0 comments on commit 43f3750

Please sign in to comment.