Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions documentation/src/components/Props.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@
<td class="table__td"><kbd>false</kbd></td>
<td class="table__td">Uses Vue Teleport's feature. Teleports the open dropdown to the bottom of the <kbd>body</kbd> element.<br /><b>Added in v3.3.1</b></td>
</tr>
<tr class="table__tr">
<td class="table__td"><strong>contentWrapperClass</strong></td>
<td class="table__td">String, Array, or Object</td>
<td class="table__td"><kbd>""</kbd></td>
<td class="table__td">Classes to apply to the <kbd>multiselect__content-wrapper</kbd> element. This element is a teleport element (when enabled), so can be used to specifically target the teleported element<br /><b>Added in v3.4</b></td>
</tr>
<tr class="table__tr">
<td class="table__td utils--center" colspan="4"><strong>pointerMixin.js</strong></td>
</tr>
Expand Down
9 changes: 9 additions & 0 deletions src/Multiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<transition name="multiselect">
<div
class="multiselect__content-wrapper"
:class="contentWrapperClass"
v-if="isOpen && ready"
@focus="activate"
tabindex="-1"
Expand Down Expand Up @@ -346,6 +347,14 @@ export default {
useTeleport: {
type: Boolean,
default: false
},
/**
* Classes to apply to the `multiselect__content-wrapper` element. This element is a teleport element (when enabled), so can be used to specifically target
* the teleported element
*/
contentWrapperClass: {
type: [String, Array, Object],
default: ""
}
},
data () {
Expand Down