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

[MdTable] md-sort not applied on initial render #1774

Closed
adrianhand opened this issue May 23, 2018 · 0 comments · Fixed by #1775
Closed

[MdTable] md-sort not applied on initial render #1774

adrianhand opened this issue May 23, 2018 · 0 comments · Fixed by #1775
Labels

Comments

@adrianhand
Copy link

adrianhand commented May 23, 2018

Given the following example: https://vuematerial.io/components/table/

Scroll down to the table sample for Sort, and the md-sort property is set to Name, as indicated by the arrow adjacent to the Name column header.

The data however is unsorted (the sequence being IDs 1,2,3,4,5 as in the underlying dataset). Click the column header to actually apply a sort by Name.

Thus the md-sort property is only enabling the sort facility, but on first load, whilst the directional arrow is drawn to indicate that the data is being sorted, the data is not actually sorted until the column header is clicked, rather it remains unsorted and is displayed in the same sequence as it exists in the underlying array.

Screenshot for clarity.

screen_shot_2018-05-23_at_13_46_27

This is using 1.0.0-beta-10.2.

This is my first time raising an issue, apologies if I have got anything wrong and my huge thanks to all involved for their great work.

@VdustR VdustR changed the title md-sort not applied on initial render of md-table [MdTable] md-sort not applied on initial render May 23, 2018
@VdustR VdustR added the bug label May 23, 2018
Samuell1 pushed a commit that referenced this issue Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants