Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

changedSelection event subject always null

$
0
0

@turnert wrote:

I added a changeSelection handle to my diagram:

private registerEvents() {
    this.diagram.addDiagramListener("ChangedSelection", (event) => this.onSelectionChanged(event));
}

private onSelectionChanged(event: go.DiagramEvent) {
    console.log("Subject:", event.subject);
}

event.subject is always null, no matter what I select or deselect. I expected this to be the same iterable as diagram.selection (which does work properly).

Am I wrong to expect this?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles