Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Javascript errors thrown on column change of grid #475

Closed
Blackbaud-TrevorBurch opened this issue Mar 10, 2017 · 1 comment
Closed

Javascript errors thrown on column change of grid #475

Blackbaud-TrevorBurch opened this issue Mar 10, 2017 · 1 comment
Assignees

Comments

@Blackbaud-TrevorBurch
Copy link
Member

Expected behavior

Columns should load and change when updated in the grid

Actual behavior

There is a case where, when the columns load after the initial grid setup and should be updated, javascript errors are thrown and the grid breaks.

Error

TypeError: Cannot read property 'locked' of undefined
    at View_SkyGridComponent1.detectChangesInternal (/SkyGridModule/SkyGridComponent/component.ngfactory.js:76:58)
    at View_SkyGridComponent1.AppView.detectChanges (eval at ./node_modules/@angular/core/src/linker/view.js (https://localhost:31337/permissions/vendor.js:1639:1), <anonymous>:438:14)
    at View_SkyGridComponent1.DebugAppView.detectChanges (eval at ./node_modules/@angular/core/src/linker/view.js (https://localhost:31337/permissions/vendor.js:1639:1), <anonymous>:633:44)
    at ViewContainer.detectChangesInNestedViews (eval at ./node_modules/@angular/core/src/linker/view_container.js (https://localhost:31337/permissions/vendor.js:1647:1), <anonymous>:71:37)
    at CompiledTemplate.proxyViewClass.View_SkyGridComponent0.detectChangesInternal (/SkyGridModule/SkyGridComponent/component.ngfactory.js:453:15)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (eval at ./node_modules/@angular/core/src/linker/view.js (https://localhost:31337/permissions/vendor.js:1639:1), <anonymous>:438:14)

Steps to reproduce

Observe plunker. I have only seen this happen if the columns are loaded during ajax and their is a "loading" placeholder column triggered by an ngIf that is replaced once they are loaded.

Plunker

https://plnkr.co/edit/W8skWejkdLNwNEQiVAJh?p=preview

@Blackbaud-PatrickOFriel
Copy link
Contributor

In 2.0.0-beta.13

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

No branches or pull requests

2 participants