vis-timeline icon indicating copy to clipboard operation
vis-timeline copied to clipboard

Question in nested group

Open rafaelgfirmino opened this issue 5 years ago • 2 comments

This issue is reopned #596

Hi, I can try to add the edit and delete button in a nested group, but when I click in button the event resize is called 89146624-add54780-d52a-11ea-8459-e8f8833504b7

how can I stop this behavior?

data:() => ({
    options: {
      ...
      groupTemplate: function(group){
      ...
        btnDelete.addEventListener("click", async (e) => {
          await group.removeAgendaEvent();
          E.stopPropagation();
          return false;
        });
      }
    }
})

rafaelgfirmino avatar Oct 05 '20 13:10 rafaelgfirmino

Can you add a jsbin?

yotamberk avatar Oct 05 '20 13:10 yotamberk

Handling the event inside a group is a bit tricky, a workaround is shown here https://github.com/almende/vis/issues/3333

Andries-Smit avatar Oct 08 '21 07:10 Andries-Smit