Skip to content
Merged
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
17 changes: 14 additions & 3 deletions packages/vuetify/src/components/VSelect/VSelectList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,23 @@ export default mixins(Colorable, Themeable).extend({
hasItem (item: object) {
return this.parsedItems.indexOf(this.getValue(item)) > -1
},
checkSlotFragment (type: any) {
return typeof type === 'symbol' && String(type) === 'Symbol(v-fgt)'
},
needsTile (slot: VNode[] | undefined): boolean {
const [vnode] = slot ?? []

if (!slot?.length || slot.length !== 1) return true

const { type } = vnode ?? {}
let vnode = slot[0] as any

if (!vnode) return true

let type = vnode.type

if (this.checkSlotFragment(type) && Array.isArray(vnode.children)) {
if (vnode.children.length !== 1) return true
vnode = vnode.children[0] as VNode
type = vnode && (vnode.type as any)
}

const isComponent = type && typeof type === 'object'

Expand Down
Loading