paper-datatable icon indicating copy to clipboard operation
paper-datatable copied to clipboard

Deselect a item doesn't work

Open SergioGeeK7 opened this issue 9 years ago • 5 comments

Hello. First of all great work. this table is amazing, but a have an issue

When I try to deselect an item, doesn't work and throw the follow in console

Uncaught TypeError: Cannot read property 'toString' of undefined ->2053 Polymer.html I have tried two methods: deselectAll and deselect (even at demo page happens this)

Picture: http://i.imgur.com/aWbEdg5.png

But when is multi-selection property active the methods works fine.

SergioGeeK7 avatar Jan 30 '16 18:01 SergioGeeK7

Do you happen to have empty strings or explicit null values in your data? If so, please try if https://github.com/David-Mulder/paper-datatable/pull/81 solves it.

david-err avatar Feb 01 '16 13:02 david-err

No, is not . even in the demo page happends .. thanks :D

SergioGeeK7 avatar Feb 01 '16 16:02 SergioGeeK7

I have the same issue. Are there any news about the solution?

lousley avatar Jul 12 '16 10:07 lousley

This check fails: https://github.com/David-Mulder/paper-datatable/blob/master/paper-datatable.html#L976

Because here undefined is passed as a parameter instead of null: https://github.com/David-Mulder/paper-datatable/blob/master/paper-datatable.html#L748.

mtsgrd avatar Nov 14 '16 20:11 mtsgrd

I have this same issue, changing it to null worked for me. Any chance #135 could be accepted? @David-Mulder

AlexanderYZhang avatar Feb 11 '18 00:02 AlexanderYZhang