Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

$mdToast in 1.0.7 doesn't wrap content correctly #8131

@mgol

Description

@mgol

See the jsbin (plunker is currently broken): http://jsbin.com/mugelu/edit?html,js,output

Here's the relevant code:

$mdToast.show({
    template: '<md-toast class="md-toast">My message</md-toast>',
    position: 'top',
    hideDelay: '10000',
});

In Angular Material 1.0.6, the toast that appears has the following representation:

<md-toast class="md-toast ng-scope md-bottom">
    <div class="md-toast-content">My message</div></md-toast>

In 1.0.7 it looks like that:

<md-toast class="md-toast md-bottom">
    My message
    <div class="md-toast-content"></div>
</md-toast>

Note the empty md-toast-content div appended to the end, the message stays out of it.

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.has: Pull RequestA PR has been created to address this issuetype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions