Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Links and other interactive elements in group labels #140

Closed
sbusch opened this issue Mar 19, 2019 · 0 comments
Closed

Links and other interactive elements in group labels #140

sbusch opened this issue Mar 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@sbusch
Copy link
Contributor

sbusch commented Mar 19, 2019

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants