From 9cdb38d8008af5c9e2660fd8d9dea083875b9a1f Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Sat, 6 May 2023 13:07:55 +0200 Subject: [PATCH] Linkcatcher should pass through event objects (#7401) --- core/modules/widgets/linkcatcher.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/modules/widgets/linkcatcher.js b/core/modules/widgets/linkcatcher.js index 78322d0f6..4f4a66b17 100644 --- a/core/modules/widgets/linkcatcher.js +++ b/core/modules/widgets/linkcatcher.js @@ -92,12 +92,9 @@ LinkCatcherWidget.prototype.handleNavigateEvent = function(event) { this.executingActions = false; } } else { - // This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent - this.parentWidget.dispatchEvent({ - type: "tm-navigate", - param: event.navigateTo, - navigateTo: event.navigateTo - }); + // This is a navigate event generated by the actions of this linkcatcher, + // so we don't trap it again, but just pass it to the parent + this.parentWidget.dispatchEvent(event); } return false; };