This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new 831c6aa AIRAVATA-3541 Stop propagation at links only instead of
applying it to the text nodes
831c6aa is described below
commit 831c6aa0b6d56a7a41d9cf847853f7d9cdf6419f
Author: Marcus Christie <[email protected]>
AuthorDate: Thu Nov 18 13:03:47 2021 -0500
AIRAVATA-3541 Stop propagation at links only instead of applying it to the
text nodes
---
django_airavata/static/common/js/components/Linkify.vue | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/django_airavata/static/common/js/components/Linkify.vue
b/django_airavata/static/common/js/components/Linkify.vue
index f2a0eb0..807e717 100644
--- a/django_airavata/static/common/js/components/Linkify.vue
+++ b/django_airavata/static/common/js/components/Linkify.vue
@@ -15,7 +15,12 @@ export default {
if (t.isLink) {
return createElement(
"a",
- { attrs: { href: t.toHref("https"), target: "_blank" } },
+ {
+ attrs: { href: t.toHref("https"), target: "_blank" },
+ on: {
+ click: this.clickHandler,
+ },
+ },
t.toString()
);
} else {
@@ -28,15 +33,7 @@ export default {
})
// Flatten array since text nodes are mapped to arrays
.flat();
- return createElement(
- "span",
- {
- on: {
- click: this.clickHandler,
- },
- },
- children
- );
+ return createElement("span", null, children);
},
methods: {
clickHandler(e) {