From aea6dbf257263504dac15a16498e1ea6b5cf8f5c Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Mon, 27 Nov 2023 13:37:09 +0100 Subject: [PATCH] fix: use variable instead of constant to control propagation of click event --- CHANGELOG.md | 1 + media/main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88d3e7b..b6e730f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This file is structured according to the [Keep a Changelog](http://keepachangelo ### Fixed - Reveal active column on reload preview +- Proper propagation of the click event in the preview window ## [v0.8.0] - 2023-03-17 diff --git a/media/main.js b/media/main.js index 96f17c3..68162f3 100644 --- a/media/main.js +++ b/media/main.js @@ -35,7 +35,7 @@ }; document.body.addEventListener('click', event => { - const node = event && event.target; + let node = event && event.target; while (node) { if (node.href) { let href = node.getAttribute('href');