Skip to content
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

Uncaught TypeError: Cannot read property 'parentElement' of null #980

Closed
s-a opened this issue Jul 12, 2015 · 5 comments
Closed

Uncaught TypeError: Cannot read property 'parentElement' of null #980

s-a opened this issue Jul 12, 2015 · 5 comments

Comments

@s-a
Copy link

s-a commented Jul 12, 2015

Sorry I can not find more informations about this error. Using MDL 1.0.0.
image

@nicolasgarnier
Copy link
Contributor

Hey @s-a Thanks for the report. Could you provide a way for us to replicate so that we can investigate this issue? For instance is this code available online somewhere? Or better: could you put some code on codepen that replicates the issue.

Thanks!

@s-a
Copy link
Author

s-a commented Jul 12, 2015

Yes I started from scratch where the error is more clear.
https://github.com/s-a/mdl-test/tree/da27dc8dccaa1f5e01c7ae6d806f2cc7c9601bdc

image

image

As I am working at an Electron application I' ve testet Google Chrome environment only. So I do not need any polyfills here right?

@s-a
Copy link
Author

s-a commented Jul 12, 2015

Just figured out that the error does not occur when I remove class mdl-data-table--selectable from table with CSS class mdl-data-table

@Garbee
Copy link
Collaborator

Garbee commented Jul 12, 2015

Related to issue #984. This is because it is trying to make the rows selectable on load, but none exist since they are dynamically loaded.

@Garbee Garbee closed this as completed Jul 12, 2015
@rubensq74
Copy link

So how do you create Dynamic Elements for them to be part of the DOM so they can be queried?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants