From 3fbe07f1f8fe1e72d1e954dfe82e70c4bd3780c8 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 30 Aug 2015 19:12:12 +0100 Subject: [PATCH] Fix link widget propogation behaviour Without this fix, using nested link widgets with custom elements causes clicks on the inner element to trigger links on each of the containing widgets --- core/modules/widgets/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/link.js b/core/modules/widgets/link.js index 650308b8c..c749ff945 100755 --- a/core/modules/widgets/link.js +++ b/core/modules/widgets/link.js @@ -135,9 +135,9 @@ LinkWidget.prototype.handleClickEvent = function(event) { }); if(this.domNodes[0].hasAttribute("href")) { event.preventDefault(); - event.stopPropagation(); - return false; } + event.stopPropagation(); + return false; }; LinkWidget.prototype.handleDragStartEvent = function(event) {