Skip to content

Commit 3620c8b

Browse files
author
Bart van den Ende
committed
add support for native click binding for components, as vue only applies native click handling on html elements
1 parent d3ad9df commit 3620c8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/navigation.service.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export class NavigationService {
7171
});
7272

7373

74+
// enable click event
75+
document.addEventListener("click", (e: MouseEvent) => {
76+
if (this.blockAllSpatialNavigation) return false;
77+
let el = this.findFocusable(<HTMLElement> e.target);
78+
if (el) el.enter();
7479
});
7580

7681
}

0 commit comments

Comments
 (0)