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.

$mdDialog Bugs in 0.11.0-rc1 (Unable to find node '{0}' in element. , Cannot read property 'insertBefore') #4429

@Tyrannmisu

Description

@Tyrannmisu

Using angular 1.4.4 FF38 and chrome 44

If you are using an confirm-dialog and do not include any div or span in the content you will get the warning:
Unable to find node '{0}' in element.

The content will not be replaced, and "{0}" will be visible instead, i guess that this is a bug and not the desired behaviour :) .

When using my old custom-dialogs with templates, i added the

<div class="md-dialog-content-body"></div> container

i get the error:
"TypeError: Cannot read property 'insertBefore' of null."

I'm not really sure if i did something wrong or if this is a bug in angular-material, the demo page seems to work just fine. I will try to reproduce it in a codepen example.

Edit:
I can't get the dialog-example to work in codepen, not even with material 0.10.1

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions