Skip to content

Commit a1c5353

Browse files
committed
Move checked attribute to input tag
1 parent 52aea2a commit a1c5353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/Views/question.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
@foreach($question->choices as $choice)
1010
<div class="lmc-choice" id="lmc-choice-{{ $choice->id }}">
11-
<input type="radio" class="lmc-choice-input" id="lmc-choice-input-{{ $choice->id }}" name="lmc-question-input-{{ $question->id }}" value="{{ $choice->id }}">
12-
<label class="lmc-choice-label" id="lmc-choice-label-{{ $choice->id }}" for="lmc-choice-input-{{ $choice->id }}" {{ ($selectedChoice != null && $choice->id == $selectedChoice->id) ? 'checked' : '' }}>
11+
<input type="radio" class="lmc-choice-input" id="lmc-choice-input-{{ $choice->id }}" name="lmc-question-input-{{ $question->id }}" value="{{ $choice->id }}" {{ ($selectedChoice != null && $choice->id == $selectedChoice->id) ? 'checked' : '' }}>
12+
<label class="lmc-choice-label" id="lmc-choice-label-{{ $choice->id }}" for="lmc-choice-input-{{ $choice->id }}">
1313
<span class="lmc-choice-text" id="lmc-choice-text-{{ $choice->id }}">{{ $choice->text }}</span>
1414
<span class="lmc-choice-description" id="lmc-choice-description-{{ $choice->id }}">{{ $choice->description }}</span>
1515
</label>

0 commit comments

Comments
 (0)