Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngClassOdd/Even doesn't work when reversing orderBy filter #1563

Closed
rgaskill opened this issue Nov 13, 2012 · 8 comments
Closed

ngClassOdd/Even doesn't work when reversing orderBy filter #1563

rgaskill opened this issue Nov 13, 2012 · 8 comments

Comments

@rgaskill
Copy link

When reversing the order of the orderByFilter the ngClassOdd and ngClassEven don't update. The unit test thet demonstrates the issue is here:

http://plnkr.co/edit/kXJcDC

@jtymes
Copy link
Contributor

jtymes commented Nov 13, 2012

Just want to note for others that this is related to #1519

Something is clearly broken with these directives.

@pkozlowski-opensource
Copy link
Member

@rgaskill It was fixed in the latest version of AngularJS (1.0.3 / 1.1.1) through this PR:
#1602

Working plunk here: http://plnkr.co/edit/R1Zpzt?p=preview

@pkozlowski-opensource
Copy link
Member

BTW: nice way of exposing a bug by attaching test!

@rgaskill
Copy link
Author

Thanks Shouldn't the test get pulled into the project?

@pkozlowski-opensource
Copy link
Member

@rgaskill I think that @IgorMinar added tests for this but if you find anything not covered with tests please open a separate PR with tests only. Thnx once again for the bug report and the PR, it helped to see the real problem and brainstorm different solutions.

@rgaskill
Copy link
Author

@pkozlowski-opensource I have created PR: #1613. It appears to me the problem was fixed once before #1076 but then it broke again. The tests originally added with #1076 didn't catch the break because the sort test didn't use the orderBy filter. This new test does.

Thank you for all the work is being done to keep this project moving forward!

@IgorMinar
Copy link
Contributor

Isn't this fixed in master?

@pkozlowski-opensource
Copy link
Member

@IgorMinar It is fixed in master and works OK. It is just that @rgaskill opened #1613 with an additional test. I was pinging you to see if this test is needed or maybe the functionality is already covered by other tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants