Posted 17 August 2020, 9:13 am EST
When using the SelectionChanged or EnterCell event to make some changes in the component in Angular, Angular does not detect these changes.
It is necessary to manually call the “detectChanges()” method of the ChangeDetectorRef class.
https://angular.io/api/core/ChangeDetectorRef#!#detectChanges-anchor
You can easily reproduce this issue in the demos of spreadjs:
Try navigating with the keyboard cursor keys in this demo:
https://www.grapecity.com/spreadjs/demos/features/worksheet/sheet-events/angular
You will see that the right part of the demo does not update automatically.
In the pure JavaScript demo it works:
https://www.grapecity.com/spreadjs/demos/features/worksheet/sheet-events/purejs