EditableColumn: error in ngOnChanges when input other than data
changes
#14525
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When value of attribute
pEditableColumnDisabled
changes during runtime, an error is thrown due tochange.data
being undefined.I believe that error is in:
primeng/src/app/components/table/table.ts
Line 4067 in 8c9f3d0
Which assumes that property
data
of SimpleChanges object will be always defined, which is not true when only thepEditableColumnDisabled
input changes (f.e. with slight delay).Environment
Windows 10, starting Angular app with yarn.
Reproducer
https://stackblitz.com/edit/github-8qgwug-rbxqag?file=src%2Fapp%2Fapp.component.html
Angular version
17.0.8
PrimeNG version
17.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
21.1.0
Browser(s)
No response
Steps to reproduce the behavior
Open example, click enable editing.
Expected behavior
Error is not thrown into console when value of input
pEditableColumnDisabled
is changed during runtimeThe text was updated successfully, but these errors were encountered: