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

dt.filter() method in dataTable causes ExpressionChangedAfterItHasBeenCheckedError #2384

Closed
Danieleeee opened this issue Mar 25, 2017 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Danieleeee
Copy link

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

Use filter method of DataTable (called by event) like this:
this.dt.filter(filter, column, 'contains');

Error:
ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: ''. Current value: '3'.
at viewDebugError (core.es5.js:8661) [angular]
at expressionChangedAfterItHasBeenCheckedError (core.es5.js:8639) [angular]
at checkBindingNoChanges (core.es5.js:8803) [angular]
at checkNoChangesNodeInline (core.es5.js:12240) [angular]
at checkNoChangesNode (core.es5.js:12202) [angular]
at debugCheckNoChangesNode (core.es5.js:12776) [angular]
at debugCheckRenderNodeFn (core.es5.js:12716) [angular]
at Object.eval [as updateRenderer] (ColumnHeaders.html:14) [angular]
at Object.debugUpdateRenderer [as updateRenderer] (core.es5.js:12698) [angular]
at checkNoChangesView (core.es5.js:12062) [angular]
at callViewAction (core.es5.js:12381) [angular]
at execEmbeddedViewsAction (core.es5.js:12359) [angular]
at checkNoChangesView (core.es5.js:12061) [angular]
at callViewAction (core.es5.js:12381) [angular]

  • Angular version: 4.0.0
  • PrimeNG version: 4.0.0
  • Browser: [all]
@Danieleeee
Copy link
Author

Danieleeee commented Mar 25, 2017

Probably is an Angular 4.0.0 problem:
ExpressionChangedAfterItHasBeenCheckedError when changing a component 'non model' value in afterViewInit #15464

@cagataycivici
Copy link
Member

#2307 should fix that but pInputText is not necessary in datatable so I've removed them anyway.

@cagataycivici cagataycivici self-assigned this Mar 27, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 27, 2017
@cagataycivici cagataycivici added this to the 4.0.RC2 milestone Mar 27, 2017
@cagataycivici cagataycivici changed the title dt.filter() method in dataTable Prime NG 4.0.0-rc.1 (ExpressionChangedAfterItHasBeenCheckedError) dt.filter() method in dataTable causes ExpressionChangedAfterItHasBeenCheckedError Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants