diff --git a/src/shared/components/GenericLink/index.jsx b/src/shared/components/GenericLink/index.jsx index a6b16563..daa9bf7b 100644 --- a/src/shared/components/GenericLink/index.jsx +++ b/src/shared/components/GenericLink/index.jsx @@ -22,6 +22,7 @@ export default function GenericLink(props) { enforceA, onClick, onMouseDown, + onKeyDown, openNewTab, replace, routerLinkType, @@ -42,6 +43,7 @@ export default function GenericLink(props) { href={to} onClick={disabled ? e => e.preventDefault() : onClick} onMouseDown={disabled ? e => e.preventDefault() : onMouseDown} + onKeyDown={disabled ? e => e.preventDefault() : onKeyDown} rel="noopener noreferrer" styleName="link" target={openNewTab ? '_blank' : ''} @@ -80,6 +82,7 @@ GenericLink.defaultProps = { enforceA: false, onClick: null, onMouseDown: null, + onKeyDown: null, openNewTab: false, replace: false, to: '', @@ -93,6 +96,7 @@ GenericLink.propTypes = { enforceA: PT.bool, onClick: PT.func, onMouseDown: PT.func, + onKeyDown: PT.func, openNewTab: PT.bool, replace: PT.bool, routerLinkType: PT.func.isRequired,
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: