Skip to content

Commit c4591e7

Browse files
committed
Change and document caret slot
1 parent e7d134b commit c4591e7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/partials/api/_slots.pug

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ h2.typo__h2#sub-slots(data-section) Slots
3333
td.table__td: strong afterList
3434
td.table__td
3535
| Shows after the list, when dropdown is open.
36+
tr.table__tr
37+
td.table__td: strong caret
38+
td.table__td
39+
| Element for opening and closing the dropdown.
40+
br
41+
| Props
42+
ul
43+
li <code>toggle: Function</code> – toggles the dropdown.

src/Multiselect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@keydown.enter.tab.stop.self="addPointerElement($event)"
1010
@keyup.esc="deactivate()"
1111
class="multiselect">
12-
<slot name="carret">
12+
<slot name="caret" :toggle="toggle">
1313
<div @mousedown.prevent.stop="toggle()" class="multiselect__select"></div>
1414
</slot>
1515
<slot name="clear" :search="search"></slot>

0 commit comments

Comments
 (0)