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

ExpressionChangedAfterItHasBeenCheckedError occurs when page size changes on Data Table with components demo #1023

Closed
mikehutter opened this issue Dec 11, 2017 · 2 comments · Fixed by #1198
Assignees
Milestone

Comments

@mikehutter
Copy link

Do you want to request a feature or report a bug?

Bug

Bug Report

Changing the page size on a td-paging-bar causes an ExpressionChangedAfterItHasBeenCheckedError when using the example from the "Data Table with components demo" located here: https://teradata.github.io/covalent/#/components/data-table

The issue can be seen in the console when the page size is changed from 5 to 10 in the below link which was created by using your stackblitz template and copying the code from https://teradata.github.io/covalent/#/components/data-table.

Screenshots or link to CodePen/Plunker/JSfiddle

https://stackblitz.com/edit/covalent-paging-bug

What is the expected behavior?

The page size should change without errors.

What is the motivation / use case for changing the behavior?

The error is not expected when changing page size.

Which version of Angular and Material, and which browser and OS does this issue affect?

See the link provided in this report.

@letthewookieewin
Copy link

I'm getting the same error. Did you have any luck with this @mikehutter ?

@jeremysmartt
Copy link
Collaborator

Looks like this only happens when running in dev mode npm run serve
When running in production it does not happen.
Possibly because in dev mode Angular triggers an extra change detection to "verify"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants