bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

`store.createRecord()` behavior different with `useRawData` #9712

Closed isglass closed 3 weeks ago

isglass commented 1 month ago

When configured with useRawData: false, it correctly applies default values to fields when passed data objects using name instead of dataSource as keys.

When configured with useRawData : true, it only works if passed data objects using dataSource as keys = how they would be loaded from a backend.

isglass commented 1 month ago

The issue is that default value application does not check names if dataSource does not exist, while type conversion code does. This does not lead to any issue when data is cloned (useRawData: false), a side effect of the cloning instead makes it work.