igniteui-angular 22.1.0 → 22.1.2

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.
@@ -827,7 +827,8 @@ function WatchChanges() {
827
827
  const oldValue = this[key];
828
828
  if (val !== oldValue || (typeof val === 'object' && val === oldValue)) {
829
829
  originalSetter.call(this, val);
830
- if (this.ngOnChanges && !init) {
830
+ // Explicitly check whether the decorator is called during initialization
831
+ if (this.ngOnChanges && init !== undefined && !init) {
831
832
  // in case wacthed prop changes trigger ngOnChanges manually
832
833
  const changes = {
833
834
  [key]: new SimpleChange(oldValue, val, false)