-
Notifications
You must be signed in to change notification settings - Fork 773
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
Problem bind [(ngModel)] using material <md-radio-group> component with flexLayout #322
Comments
@GustavoCostaW - please provide a Plunkr demo or source code to reproduce this issue. |
@ThomasBurleson done! Simulate the behavior when you remove |
@GustavoCostaW - this is not a @angular/flex-layout issue. Here is a Plunkr Demo without any fxLayout directives. Notice that by simply adding a
|
Closing as not an @angular/flex-layout issue. Please report this issue on the @angular/material repository. |
Hey @ThomasBurleson, thank you for the reply! I will make this :-) |
Reopening: @ThomasBurleson could you take a look at this plunker? http://plnkr.co/edit/sVbxtBHtaXS9mh9ZC4ns?p=preview It distills the problem down to a bare minimum. You can see on line 94 of main.ts that importing FlexLayoutModule causes the issue. |
Could this be related to #127? |
This Plunkr with latest build of FlexLayoutModule and latest release of Material shows everything working properly.
|
Hello! Very weird bug! |
@etiennecrb - indeed. I am inclined to think this is an |
Adding |
Oh that is interesting.
Can you report these findings as an issue with RadioGroup on the @angular/material2 repos ? |
Closing this as not-an-issue for Flex-Layout. |
Was any bug in @angular/material2 opened for this in the end? |
No, I haven't opened an issue yet. |
@epere4, @etiennecrb - This has NOT been fixed in the latest Material2 release. |
After discussions with Angular material team, we are reopening for further investigation. |
Refs #394 - May be fixed with removal of |
<md-radio-group [(ngModel)]="question.answer" style="height:200px" name="answer">
<div *ngFor="let alternative of question.alternatives" id="problem">
<md-radio-button [value]="alternative.id"> {{alternative.title}} </md-radio-button>
<div>remove</div>
</div>
</md-radio-group> creates <md-radio-group [(ngModel)]="question.answer" style="height:200px" name="answer">
<div id="problem" fxLayout *ngFor="let alternative of question.alternatives" >
<md-radio-button [value]="alternative.id"> {{alternative.title}} </md-radio-button>
<div>remove</div>
</div>
</md-radio-group> creates @devversion - something is interfering with |
Is this still an issue? |
Closing since this hasn't been updated in a while. We can re-open if a followup is provided confirming this is still an issue. |
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. |
Hey people,
I'm using
Angular Material beta 7
Angular Flex Layout beta 8
I have a component with the following code snippet
if the div#problem has
fxLayout
directive the[(ngModel)]="question.answer"
in md-radio-group doesn't bind when the component is started, see below behavior when div#problem does not havefxLayout
directive:But if I add
fxLayout
directive, the bind does not work when the component is started.Demo: http://plnkr.co/edit/k3xXPY?p=preview
Simulate the behavior when you remove
fxLayout
indiv#problem
Is the directive blocking the Angular Material of changing css?
The text was updated successfully, but these errors were encountered: