Closed istemi-bahceci closed 8 years ago
Events bubble up to compound parents, just as events bubble on div parents in the DOM. You'll have to use a custom event for compounds, e.g.
nodes.qtip({ show: { event: 'directtap' } });
nodes.on('tap', function( e ){
var eventIsDirect = e.cyTarget === this;
if( eventIsDirect ){
this.trigger('directtap');
}
});
@maxkfranz Thanks :) :+1:
Hi,
When a child node is clicked which is inside a compound node, qTip pops up for the parents of this clicked node too. You can try qtip demo of cytoscape-js with the following javascript code to reproduce the issue.
Thanks,