Skip to content

Commit

Permalink
Visual glitch with checkbox field statamic#3183
Browse files Browse the repository at this point in the history
  • Loading branch information
berdjabrahamian committed Feb 9, 2021
1 parent 29898c9 commit c8a4a68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions resources/js/components/fieldtypes/CheckboxesFieldtype.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<div class="checkboxes-fieldtype-wrapper" :class="{'inline-mode': config.inline}">
<div class="option" v-for="(option, $index) in options" :key="$index">
<label>
<input type="checkbox"
ref="checkbox"
:name="name + '[]'"
:value="option.value"
:disabled="isReadOnly"
v-model="values"
/>
<input type="checkbox"
ref="checkbox"
:name="name + '[]'"
:value="option.value"
:disabled="isReadOnly"
v-model="values"
/>
<label :for="name + '[]'">
{{ option.label || option.value }}
</label>
</div>
Expand Down
18 changes: 9 additions & 9 deletions resources/js/components/fieldtypes/RadioFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
:key="$index"
class="option"
>
<label>
<input type="radio"
ref="radio"
:name="name"
@input="update($event.target.value)"
:value="option.value"
:disabled="isReadOnly"
:checked="value === option.value"
/>
<input type="radio"
ref="radio"
:name="name"
@input="update($event.target.value)"
:value="option.value"
:disabled="isReadOnly"
:checked="value === option.value"
/>
<label :for="name">
{{ option.label || option.value }}
</label>
</div>
Expand Down

0 comments on commit c8a4a68

Please sign in to comment.