Skip to content

Commit 2ad951c

Browse files
committed
use composedPath
1 parent 24c4986 commit 2ad951c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@packaged-ui/fusion",
3-
"version": "2.10.5",
3+
"version": "2.10.6",
44
"main": "fusion.js",
55
"type": "module",
66
"files": [

src/Foundation/res/events.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export function on(delegate, eventName, selector, callback)
1010

1111
function _fn(e)
1212
{
13-
let t = e.path && e.path[0] || e.target;
13+
const path = e.path || e.composedPath();
14+
let t = path && path[0] || e.target;
1415
do
1516
{
1617
if((!selector) || (t.matches && t.matches(selector)))

src/_resources/fusion.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)