UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

9 lines 403 B
// function handleClickOnLink(ev: React.MouseEvent<unknown>) { // eslint-disable-next-line @typescript-eslint/no-explicit-any export function openLinkInNewTabUsingDatahref(e) { e.preventDefault(); const testElement = e.nativeEvent.target; const href = testElement.getAttribute('data-href'); window.open(href, '_blank'); } //# sourceMappingURL=openLinkInNewTabUsingDatahref.js.map