Replies: 3 comments 1 reply
-
My current workaround is as following: Custom Revogrid comp wrapper ngOnChanges(changes: SimpleChanges): void {
this.newSource = _.cloneDeep(changes['source'].currentValue);
}
ngOnInit(): void {
this.newSource = _.cloneDeep(this.source);
} But i think there must be a other way ... |
Beta Was this translation helpful? Give feedback.
-
I'll check soon, ty @Thoemmy ! |
Beta Was this translation helpful? Give feedback.
-
Hi @Thoemmy, Thank you for sharing your example. After reviewing it (next time better provide github repo to clone, easier to catch), I noticed that the issue seems to stem from the following line: this.newSource = _.cloneDeep(changes['source'].currentValue); It looks like There are several ways to handle this:
Let me know if you need further clarification or assistance with implementing this approach! Cheers. |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
My config for the angular app is looking as following, if i load the dev environment setup with production = false then i receive an error when i try to change some values in the revogrid table, but if production=true then i do not receive any errors.
By mistake, the production mode was permanently switched on, which also meant that the strict checks by angular were not active.
I tried to add a "cloned" array to the source of revogrid but same situation (used spread operator), i did not tried it with loadash cloneDeep cause it should be possible without i guess.
Would be great if you could give me some suggestions which i can check or test.
Angular Config:
Error message after editing a cell in revogrid:
If i enable prod mode this error do not occur, this is really strange.
Beta Was this translation helpful? Give feedback.
All reactions