-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MatButtonToggle errors with Ivy enabled #16471
Comments
Can you post what your template looks like? Otherwise it's difficult to investigate. |
@crisbeto thanks very much for your prompt reply. Here is my template. Not something complicated:
|
…e in Ivy Fixes the button toggle throwing an error under Ivy, if its `checked` value is set via a static attribute (e.g. `<mat-button-toggle checked>`). The issue comes from the fact that in Ivy static inputs are set during creation, which means that the selection model isn't initialized yet. Fixes angular#16471.
It'll be fixed by #16587. Until the fix is released, you should be able to work around it by binding to |
…e in Ivy Fixes the button toggle throwing an error under Ivy, if its `checked` value is set via a static attribute (e.g. `<mat-button-toggle checked>`). The issue comes from the fact that in Ivy static inputs are set during creation, which means that the selection model isn't initialized yet. Fixes angular#16471.
…e in Ivy (#16587) Fixes the button toggle throwing an error under Ivy, if its `checked` value is set via a static attribute (e.g. `<mat-button-toggle checked>`). The issue comes from the fact that in Ivy static inputs are set during creation, which means that the selection model isn't initialized yet. Fixes #16471.
Hello, still i am facing same issue while running unit tests.
|
…e in Ivy (#16587) Fixes the button toggle throwing an error under Ivy, if its `checked` value is set via a static attribute (e.g. `<mat-button-toggle checked>`). The issue comes from the fact that in Ivy static inputs are set during creation, which means that the selection model isn't initialized yet. Fixes #16471.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The
MatButtonToggle
component throws several errors inng serve
with Ivy compiler enabled.Reproduction
Not able to reproduct with Stackblitz
Expected Behavior
ng serve
should not throw any errorsActual Behavior
ng serve
throws the following errors:Environment
Angular CLI: 8.1.0
Node: 10.15.3
OS: win32 x64
Angular: 8.2.0-next.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
@angular-devkit/architect 0.801.0
@angular-devkit/build-angular 0.801.0
@angular-devkit/build-optimizer 0.801.0
@angular-devkit/build-webpack 0.801.0
@angular-devkit/core 8.1.0
@angular-devkit/schematics 8.1.0
@angular/cdk 8.0.2
@angular/cli 8.1.0
@angular/material 8.0.2
@ngtools/webpack 8.1.0
@schematics/angular 8.1.0
@schematics/update 0.801.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.2
The text was updated successfully, but these errors were encountered: