David-Mulder / paper-datatable

A material design implementation of a data table.
GNU General Public License v3.0
237 stars 92 forks source link

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

Open ghost opened 7 years ago

ghost commented 7 years ago

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)

dhrytsenko commented 7 years ago

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 commented 7 years ago

or this :D

dhrytsenko commented 7 years ago

@RoXuS nice work! I saw it)

RoXuS commented 7 years ago

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