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;
|
const { href, navigate, icon, description } = props;
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
onClick={e => {
|
||||||
|
if (href) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
}}
|
||||||
className="icon--help"
|
className="icon--help"
|
||||||
icon={icon || ICONS.HELP}
|
icon={icon || ICONS.HELP}
|
||||||
description={description || __('Help')}
|
description={description || __('Help')}
|
||||||
|
|
Loading…
Add table
Reference in a new issue