@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.subjectis alwaysnull, no matter what I select or deselect. I expected this to be the same iterable asdiagram.selection(which does work properly).Am I wrong to expect this?
Posts: 4
Participants: 2