Skip to content
This repository has been 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

Closed
Tyrannmisu opened this issue Sep 2, 2015 · 2 comments
Assignees
Milestone

Comments

@Tyrannmisu
Copy link

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

@chronixlo
Copy link

All of the 0.11.0 md-dialog demos seem to throw errors atm

@ThomasBurleson ThomasBurleson self-assigned this Sep 3, 2015
@ThomasBurleson ThomasBurleson added this to the 0.11.0 milestone Sep 3, 2015
@ThomasBurleson
Copy link
Contributor

@Tyrannmisu - you should never use <div class="md-dialog-content-body"> in your template. The mdDialogContentBody is used internally in the Dialog component.

kennethcachia pushed a commit to kennethcachia/material that referenced this issue Sep 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants