When clicking on the below Shape, I did not see the statement “close notes before popping up menu” logged to the console. Why is this the case?
(
go.Shape,
{
fill: '#000000',
name: 'menu',
width: 20, height: 20,
margin: 15,
alignment: go.Spot.Right,
columnSpan: 1,
stroke: '#000000',
strokeWidth: 0.2,
geometry: go.Geometry.parse(this.icons.ellipsis, true),
cursor: 'pointer',
click: (e, obj: go.Node) => {
console.log('close notes before popping up menu');
// this.backgroundClicked.emit();
}
},
new go.Binding('visible', 'shape', o => o !== 'circle'),
new go.Binding('visible', 'define', d => (d ? false : true))),
{
// define a context menu for each node
contextMenu: this.mainContext
}
)
Thanks.