Stop event bubbling on link to monitor site
This commit is contained in:
1 parent
6dde4646d8
commit
004e43092b
1 file changed
+9
-3
@@ -41,7 +41,14 @@ import {
|
|||||||
const Host = ({ params }) => {
|
const Host = ({ params }) => {
|
||||||
return (
|
return (
|
||||||
<Stack direction="row" alignItems="center" className="host">
|
<Stack direction="row" alignItems="center" className="host">
|
||||||
<a href={params.url} target="_blank" rel="noreferrer">
|
<a
|
||||||
|
href={params.url}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
onClick={(event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
}}
|
||||||
|
>
|
||||||
<OpenInNewPage />
|
<OpenInNewPage />
|
||||||
</a>
|
</a>
|
||||||
<Box>{params.title}</Box>
|
<Box>{params.title}</Box>
|
||||||
@@ -231,8 +238,7 @@ const Monitors = () => {
|
|||||||
onClose={closeMenu}
|
onClose={closeMenu}
|
||||||
>
|
>
|
||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={(event) => {
|
onClick={() => {
|
||||||
event.stopPropagation();
|
|
||||||
window.open(actions.url, "_blank", "noreferrer");
|
window.open(actions.url, "_blank", "noreferrer");
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user