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

Null items in the list object items makes all the other items not be previewied #127

Open
ghost opened this issue Feb 23, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2017

Whenever I try to preview a list with a null item e.g.

[{"id": 18855, "kind": null, "type": "484", "description": null, "name": "JOHN DOE"}]

The error is as shown below.
The error is caused by the null in description.

Uncaught TypeError: Cannot read property 'toString' of null
at HTMLElement._cast (paper-datatable/paper-datatable-column.html:346:19)
at HTMLElement._formatValue (paper-datatable/paper-datatable-column.html:298:18)
at cells.forEach (paper-datatable/paper-datatable.html:632:66)
at Array.forEach (native)
at HTMLElement. (paper-datatable/paper-datatable.html:590:14)
at Debouncer.complete (polymer/polymer-mini.html:2094:10)
at Debouncer.boundComplete (polymer/polymer-mini.html:2071:6)
at Object._atEndOfMicrotask (polymer/polymer-mini.html:2049:1)
at MutationObserver.window.MutationObserver.observe.characterData (polymer/polymer-mini.html:2064:15)

@ghost ghost changed the title Null items in the list object items Null items in the list object items fail to preview Feb 23, 2017
@ghost ghost changed the title Null items in the list object items fail to preview Null items in the list object items makes all the other items not be previewied Feb 23, 2017
@dhrytsenko
Copy link

Hi @a-skillz23! If you want to use paper-datatable with some new features you need to check our element from repo. Please, read desription to learn more about it

@RoXuS
Copy link

RoXuS commented Mar 3, 2017

or this :D

@dhrytsenko
Copy link

@RoXuS nice work! I saw it)

@RoXuS
Copy link

RoXuS commented Mar 3, 2017

Thx @dhrytsenko ! You also did a good job! The table seems to meet different needs of mine.

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

2 participants