ClickEvents on a Node

Hi Walter,
when a SubGraphExpanderButton clicked , node click functionality is also getting executed, after executing button click functionality. How to stop Node Click Functionality when we click button?

myDiagram.groupTemplate =
            $$(go.Group, "Auto",
                    {
                        layout: makeLayout(false),
                        background: "transparent",
                        // isAnimated:false,
                        ungroupable: true,
                        click: (e,obj)  => {
                            console.log("Click");
                        }
                    },
//                                new go.Binding("layout", "horiz", makeLayout), // Uncomment this for TreeLayout in PlaceHolder
                    new go.Binding("isSubGraphExpanded", "isSubGraphExpanded"),
                    // new go.Binding("isSubGraphAlreadyExpanded", "isSubGraphAlreadyExpanded"),
                    $$(go.Shape, "RoundedRectangle", {
                        portId: "",
                        fromSpot: go.Spot.Right,
                        toSpot: go.Spot.Left
                    },
                            {fill: null, stroke: defaultColor(false), strokeWidth: 2},
                            new go.Binding("stroke", "horiz", defaultColor),
                            new go.Binding("stroke", "color"))
                    , $$(go.Panel, "Vertical",new go.Binding("background", "horiz", backgroundColor),
                            $$(go.Panel, "Horizontal",
                                    {stretch: go.GraphObject.Horizontal, background: defaultColor(false)},
                                    new go.Binding("background", "horiz", defaultColor),
                                    new go.Binding("height", "horiz", defaultHeight),
                                    new go.Binding("background", "color"),
                                    $$("SubGraphExpanderButton",
                                            {alignment: go.Spot.Right, margin: 5,click: (e,obj)  => {
                            console.log("SubGraphExpanderButtonClick");
                        }}),
                                    $$(go.TextBlock,
                                            {
                                                alignment: go.Spot.Left,
                                                editable: true,
                                                margin: 5,
                                                font: defaultFont(false),
                                                opacity: 0.75,
                                            },
                                            new go.Binding("stroke", "horiz", fontColor),
                                            new go.Binding("font", "horiz", defaultFont),
                                            new go.Binding("text", "text").makeTwoWay())
                                    ),
                            $$(go.Placeholder,
                                    {padding: 0, margin: new go.Margin(0, 0, 0, 8), alignment: go.Spot.TopLeft})
                            )
                    );

I think you want to set InputEvent.handled to true in your button click event handler.