Skip to content

Commit

Permalink
chore: wrapped slot with label element (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProticM authored Jun 18, 2020
1 parent 3237ac8 commit bb15b19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/GridMultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
/>
</span>
<span v-if="!item.$isGroup" class="gridmultiselect__itemtext">
<slot name="item" :item="item">
<label
class="gridmultiselect__itemlabel gridmultiselect__itemlabel--font-small"
:class="{'gridmultiselect__itemlabel--disabled': item.$isDisabled}"
:for="(item.$isDisabled ? null : 'item-cb' + item[itemKey] + '_' + guid)"
>{{getItemLabel(item)}}</label>
</slot>
<label
class="gridmultiselect__itemlabel gridmultiselect__itemlabel--font-small"
:class="{'gridmultiselect__itemlabel--disabled': item.$isDisabled}"
:for="(item.$isDisabled ? null : 'item-cb' + item[itemKey] + '_' + guid)"
>
<slot name="item" :item="item">{{getItemLabel(item)}}</slot>
</label>
</span>
</li>
<li class="gridmultiselect__itemsfooter" v-if="hasSlot('items-footer')">
Expand Down

0 comments on commit bb15b19

Please sign in to comment.