diff --git a/.changeset/silent-tires-fall.md b/.changeset/silent-tires-fall.md new file mode 100644 index 0000000000..413287c485 --- /dev/null +++ b/.changeset/silent-tires-fall.md @@ -0,0 +1,7 @@ +--- +'@siemens/ix-angular': patch +--- + +Fixed an issue where **ix-tree** with a custom `renderItem` function would throw a runtime error ("TypeError: this.renderItem is not a function") + +Fixes #2274 diff --git a/packages/angular/src/tree.ts b/packages/angular/src/tree.ts index bad1716739..23f9ff593f 100644 --- a/packages/angular/src/tree.ts +++ b/packages/angular/src/tree.ts @@ -14,11 +14,11 @@ import { ElementRef, NgZone, } from '@angular/core'; -import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils'; import { TreeBaseDirective } from '@siemens/ix-angular/common'; +import { ProxyCmp, proxyOutputs } from './angular-component-lib/utils'; @ProxyCmp({ - inputs: ['context', 'model', 'root', 'renderItem'], + inputs: ['context', 'model', 'root'], }) @Component({ selector: 'ix-tree',