Skip to content

Commit

Permalink
fix(Splitter): assertion error when hover over <a> element (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylost authored Sep 21, 2024
1 parent 9662424 commit 1892d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Splitter/utils/stackingOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ function getAncestors(node: HTMLElement) {
/** @param {HTMLElement} node */
function getParent(node: HTMLElement) {
// @ts-expect-error host should exist
return node.parentNode?.host || node.parentNode
return (node.parentNode instanceof DocumentFragment && node.parentNode?.host) || node.parentNode
}

0 comments on commit 1892d9f

Please sign in to comment.