Skip to content

Commit

Permalink
guard against anchors setting host property as string
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Sep 24, 2024
1 parent d41b282 commit 0a719c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dom-expressions/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function eventHandler(e) {
data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
if (e.cancelBubble) return;
}
node.host && node.contains(e.target) && !node.host._$host && retarget(node.host);
node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
return true;
};
const walkUpTree = () => {
Expand Down

0 comments on commit 0a719c5

Please sign in to comment.