daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

Bug - when runnning gulp --production multiple="multiple" #363

Open sam-g-roberts opened 8 years ago

sam-g-roberts commented 8 years ago

when i run the gulp production flag multiple is set equal to the string multiple. When i run gulp normally this does not happen and multiple row selection works as normal.

Any ideas?

sam-g-roberts commented 8 years ago

If i set multiple="true" in the code it works as expected when the production flag is present when running gulp

daniel-nagy commented 8 years ago

It is trying to evaluate it as an expression on the scope. Because multiple is not a variable on your scope, it is returning false.

seb2086 commented 7 years ago

I have the same issue. Replacing multiple by multiple="true" works fine for me. Thanks ;)

haneefatel commented 7 years ago

Another finding related to it multiple checkbox showing at the header when I implement multiple as follows multiple="{{vm.total}}" vm = is my localized scope

This is happening when the value of total get modified. Eg: after deleting an item from the table, total count will be reduced by 1, then it shows two check box at the header.