Add fallback to current element to click handler
kitten.sh 3 years ago dce77848 f1c9f306
··· 23 23 target = node.querySelector(clickableSelectors); 24 24 } 25 25 26 26 - if (target) (target as HTMLElement).click(); 26 26 + ((target || node) as HTMLElement).click(); 27 27 focus(activeElement); 28 28 } 29 29 };