Skip to content

Radio group for radio buttons not working with HTML elements between  #7166

@ghost

Description

Bug, feature request, or proposal:

When there are HTML elements between and the group is not working / model propagation

What is the current behavior?

The model is not propagated to the radio buttons / the default button is not selected

What are the steps to reproduce?

           <md-radio-group [(ngModel)]="predefined">
                <div class="div-block">
                    <md-radio-button [value]="true">Predefined library</md-radio-button>
                </div>
                <div class="div-block">
                </div>
                <div class="div-block">
                    <md-radio-button [value]="false">Own library</md-radio-button>
                </div>
        </md-radio-group>

What is the use-case or motivation for changing an existing behavior?

See image:
image

Predefined should be selected, when the divs are removed it works

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

beta.10

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot reproduceThe team is unable to reproduce this issue with the information provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions