Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getActionFromEvent: (event: Event) => {
const element = closest(event.target as Element, `[${strings.ACTION_ATTRIBUTE}]`);
return element && element.getAttribute(strings.ACTION_ATTRIBUTE);
},
clickDefaultButton: () => {
getActionFromEvent: (event: Event) => {
const element = closest(event.target as Element, `[${strings.ACTION_ATTRIBUTE}]`);
return element && element.getAttribute(strings.ACTION_ATTRIBUTE);
},
clickDefaultButton: () => {