We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SelectContent
1 parent 0e6d88b commit 528b920Copy full SHA for 528b920
packages/core/src/Select/SelectContentImpl.vue
@@ -301,7 +301,12 @@ provideSelectContentContext({
301
:id="rootContext.contentId"
302
:ref="
303
(vnode: ComponentPublicInstance) => {
304
- content = unrefElement(vnode) as HTMLElement
+ const el = unrefElement(vnode) as HTMLElement | undefined
305
+ // special case for PopperContent
306
+ if (el?.hasAttribute('data-reka-popper-content-wrapper'))
307
+ content = el.firstElementChild as HTMLElement
308
+ else
309
+ content = el
310
return undefined
311
}
312
"
0 commit comments