feat: ship creator journey v2 and profile updates
This commit is contained in:
11
resources/js/components/common/isEventWithinNode.js
Normal file
11
resources/js/components/common/isEventWithinNode.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export default function isEventWithinNode(event, node) {
|
||||
if (!event || !node) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (typeof event.composedPath === 'function') {
|
||||
return event.composedPath().includes(node)
|
||||
}
|
||||
|
||||
return node.contains(event.target)
|
||||
}
|
||||
Reference in New Issue
Block a user