Starcounter / Starcounter.Uniform

Helper library for server-side part of uniform components.
MIT License
0 stars 0 forks source link

UniDataTable view-model has default Sort values as an empty string #25

Closed miyconst closed 5 years ago

miyconst commented 5 years ago

The default value of every column of a UniDataTable view-model is an empty string.

This is wrong, because on the client side binding it's treated as "value set" and results in the following HTML:

<uni-data-table-sorter direction>
    Column name
</uni-data-table-sorter>

Instead of

<uni-data-table-sorter>
    Column name
</uni-data-table-sorter>

For the columns without sorting on the first page load.

miyconst commented 5 years ago

Fixed and should be shipped in the next release.