debug(tracker): логировать ВСЕ клики на body, чтобы найти потерянный bubbling
This commit is contained in:
@@ -227,6 +227,9 @@
|
||||
(есть ключ локально, нет на сервере, mark_read иначе никогда не уйдёт). */
|
||||
function wirePillTracking() {
|
||||
document.body.addEventListener('click', e => {
|
||||
const tag = e.target && e.target.tagName;
|
||||
const cls = e.target && e.target.className;
|
||||
console.log('[tracker] click event target:', tag, '| class:', cls, '| has .para-pill[data-para] up the tree:', !!e.target.closest('.para-pill[data-para]'));
|
||||
const pill = e.target.closest('.para-pill[data-para]');
|
||||
if (!pill) return;
|
||||
const key = pill.dataset.para;
|
||||
|
||||
Reference in New Issue
Block a user