Open Ashvi213 opened 1 year ago
Is it possible to add double click without adding html on the node? Used addeventlistener(dblclick) it also not working. (angular project)
I can't help you in angular. But this would be the native javascript event with addEventListener.
editor.container.addEventListener('dblclick', (e) => {
if(e.target.closest(".drawflow_content_node")?.parentElement) {
alert(e.target.closest(".drawflow_content_node").parentElement.id);
}
});