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.
1 parent 76fdc14 commit ece184eCopy full SHA for ece184e
packages/qwik/src/core/client/dom-container.ts
@@ -81,11 +81,8 @@ export function getDomContainerFromQContainerElement(qContainerElement: Element)
81
}
82
83
/** @internal */
84
-export function _getQContainerElement(element: Element | VNode): Element | null {
85
- const qContainerElement: Element | null = vnode_isVNode(element)
86
- ? (vnode_getDomParent(element, true) as Element)
87
- : element;
88
- return qContainerElement.closest(QContainerSelector);
+export function _getQContainerElement(element: Element): Element | null {
+ return element.closest(QContainerSelector);
89
90
91
export const isDomContainer = (container: any): container is DomContainer => {
0 commit comments