igniteui-angular 21.2.15 → 21.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -826,7 +826,8 @@ function WatchChanges() {
826
826
  const oldValue = this[key];
827
827
  if (val !== oldValue || (typeof val === 'object' && val === oldValue)) {
828
828
  originalSetter.call(this, val);
829
- if (this.ngOnChanges && !init) {
829
+ // Explicitly check whether the decorator is called during initialization
830
+ if (this.ngOnChanges && init !== undefined && !init) {
830
831
  // in case wacthed prop changes trigger ngOnChanges manually
831
832
  const changes = {
832
833
  [key]: new SimpleChange(oldValue, val, false)