Skip to content

Commit

Permalink
Try It Out: Remove required input field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Oct 28, 2021
1 parent fb8b28f commit 3722637
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/components/field-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@
<input type="radio" name="{{ $fullName }}"
value="{{$component === 'body' ? 'true' : 1}}"
data-endpoint="{{ $endpointId }}"
data-component="{{ $component }}" @if($required)required @endif
data-component="{{ $component }}"
>
<code>true</code>
</label>
<label data-endpoint="{{ $endpointId }}" hidden>
<input type="radio" name="{{ $fullName }}"
value="{{$component === 'body' ? 'false' : 0}}"
data-endpoint="{{ $endpointId }}"
data-component="{{ $component }}" @if($required)required @endif
data-component="{{ $component }}"
>
<code>false</code>
</label>
@elseif($isList)
<input type="{{ $inputType }}"
name="{{ $fullName.".0" }}"
data-endpoint="{{ $endpointId }}"
data-component="{{ $component }}" @if($required)required @endif hidden>
data-component="{{ $component }}" hidden>
<input type="{{ $inputType }}"
name="{{ $fullName.".1" }}"
data-endpoint="{{ $endpointId }}"
Expand All @@ -55,7 +55,7 @@
name="{{ $fullName }}"
data-endpoint="{{ $endpointId }}"
value="{{ $example ?? '' }}"
data-component="{{ $component }}" @if($required)required @endif hidden>
data-component="{{ $component }}" hidden>
@endif
@endif
<br>
Expand Down

0 comments on commit 3722637

Please sign in to comment.