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

Add fallback to current element to click handler

Changed files
+1 -1
src
utils
+1 -1
src/utils/click.ts
···
target = node.querySelector(clickableSelectors);
}
-
if (target) (target as HTMLElement).click();
+
((target || node) as HTMLElement).click();
focus(activeElement);
}
};