Skip to content

Commit 8bcf729

Browse files
committed
- Fixed getting input values back
1 parent 6a55e20 commit 8bcf729

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/elements/src/component-factory-strategy.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
ɵisViewDirty as isViewDirty,
2626
ɵmarkForRefresh as markForRefresh,
2727
OutputRef,
28+
isSignal,
2829
} from '@angular/core';
2930
import {merge, Observable, ReplaySubject} from 'rxjs';
3031
import {switchMap} from 'rxjs/operators';
@@ -185,7 +186,9 @@ export class ComponentNgElementStrategy implements NgElementStrategy {
185186
*/
186187
private resetProperties() {
187188
this.componentFactory.inputs.forEach((input) => {
188-
this.initialInputValues.set(input.propName, this.componentRef!.instance[input.propName]);
189+
let inputValue = this.getInputValue(input.propName);
190+
inputValue = input.isSignal && isSignal(inputValue) ? inputValue() : inputValue;
191+
this.initialInputValues.set(input.propName, inputValue);
189192
});
190193
}
191194

0 commit comments

Comments
 (0)