yotamberk / timeline-plus

Timeline - chronological visualization of your data
MIT License
137 stars 36 forks source link

Links and other interactive elements in group labels #140

Closed sbusch closed 5 years ago

sbusch commented 5 years ago

Links in group labels having nestedGroups are not followed.

See JS Bin.

I searched the whole day and still have no idea what happens. Can you give me a hint?

Besides other things, I tried to dynamically create DOM nodes with click handlers via groupTemplate, but this also did not work.

Somehow, timeline-plus (or the Hammer.js library) is swallowing the click events. Reason could be groups re-rendering in _onGroupClick function in ItemSet.js (DOM nodes no longer existing, so no bubbling? Just an idea...)

Fun fact: after long pressing the link, it is followed. Maybe because Hammer.js triggers an "press" event which - at least based on my research - isn't processed by timeline-plus, and it triggers a click Event which then triggers default behaviour?

Any help greatly appreciated!