Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
Yes
Description
After upgrading to Angular 13, our tests are failing due to an exception thrown by the NgSelectOption OnDestroy. I believe that the issue may have been present for some time but is being exposed by the new default behavior of always calling the OnDestroys.
Please provide a link to a minimal reproduction of the bug
https://github.com/jessharrell/angular13-dropdown-testing
Please provide the exception or error you saw
TypeError: 'set' on proxy: trap returned falsish for property 'value'
at DefaultDomRenderer2.setProperty (node_modules/@angular/platform->browser/fesm2020/platform-browser.mjs:642:12)
at BaseAnimationRenderer.setProperty (node_modules/@angular/platform-browser/fesm2020/animations.mjs:292:27)
at SelectControlValueAccessor.setProperty (node_modules/@angular/forms/fesm2020/forms.mjs:49:24)
at SelectControlValueAccessor.writeValue (node_modules/@angular/forms/fesm2020/forms.mjs:6065:14)
at NgSelectOption.ngOnDestroy (node_modules/@angular/forms/fesm2020/forms.mjs:6155:26)
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 13.3.5
Node: 16.14.2
Package Manager: npm 8.5.0
OS: darwin x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1303.5 (cli-only)
@angular-devkit/core 13.3.5 (cli-only)
@angular-devkit/schematics 13.3.5 (cli-only)
@schematics/angular 13.3.5 (cli-only)
Anything else?
This issue seems to be exposed when using jest and masked when using other test runners
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
Yes
Description
After upgrading to Angular 13, our tests are failing due to an exception thrown by the NgSelectOption OnDestroy. I believe that the issue may have been present for some time but is being exposed by the new default behavior of always calling the OnDestroys.
Please provide a link to a minimal reproduction of the bug
https://github.com/jessharrell/angular13-dropdown-testing
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version)Anything else?
This issue seems to be exposed when using jest and masked when using other test runners