Skip to content

Commit

Permalink
Make "index" available in options list elements (#1252)
Browse files Browse the repository at this point in the history
* Fix linting errors in development environment

* Make index available in options list element

Co-authored-by: Malik Dirim <[email protected]>
  • Loading branch information
Malik Dirim and Malik Dirim authored May 5, 2020
1 parent 0444c8c commit b6b1118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
:data-selected="selectedLabelText"
:data-deselect="deselectLabelText"
class="multiselect__option">
<slot name="option" :option="option" :search="search">
<slot name="option" :option="option" :search="search" :index="index">
<span>{{ getOptionLabel(option) }}</span>
</slot>
</span>
Expand All @@ -131,7 +131,7 @@
@mouseenter.self="groupSelect && pointerSet(index)"
@mousedown.prevent="selectGroup(option)"
class="multiselect__option">
<slot name="option" :option="option" :search="search">
<slot name="option" :option="option" :search="search" :index="index">
<span>{{ getOptionLabel(option) }}</span>
</slot>
</span>
Expand Down

0 comments on commit b6b1118

Please sign in to comment.