Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add fallback to current element to click handler

+1 -1
+1 -1
src/utils/click.ts
··· 23 23 target = node.querySelector(clickableSelectors); 24 24 } 25 25 26 - if (target) (target as HTMLElement).click(); 26 + ((target || node) as HTMLElement).click(); 27 27 focus(activeElement); 28 28 } 29 29 };