prevent clicking through help links
This commit is contained in:
parent
88c86ff447
commit
4b98cf45f3
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ export default function HelpLink(props: Props) {
|
|||
const { href, navigate, icon, description } = props;
|
||||
return (
|
||||
<Button
|
||||
onClick={e => {
|
||||
if (href) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
}}
|
||||
className="icon--help"
|
||||
icon={icon || ICONS.HELP}
|
||||
description={description || __('Help')}
|
||||
|
|
Loading…
Add table
Reference in a new issue