I need to be able to store complex data (custom object) in a cell. I already have a cell editor and a cell renderer and I also have created a custom type for it. However It still doesn’t work. When my editor returns a complex object and that the orgValue was null, it doesn’t take the new value.
Debugging through the code, I can see:
- my cell can be null from start and will be an object after cell has changed (i used own custom cell editor)
Also the comparison of schema is too strict.
Your logic in sources unable to resolve my case (step 1) and in general has very strange clauses.
if (value !== null && typeof value === 'object') {
if (orgValue === null || typeof orgValue !== 'object') {
pushData = false;
} else {
var orgValueSchema = duckSchema(orgValue[0] || orgValue);
var valueSchema = duckSchema(value[0] || value);
if (isObjectEquals(orgValueSchema, valueSchema)) {
value = deepClone(value);
} else {
pushData = false;
}
}