Skip to content

Commit

Permalink
Changes in the internal data source method #7031
Browse files Browse the repository at this point in the history
  • Loading branch information
wszymanski committed Jul 21, 2020
1 parent 156d454 commit 1400327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class DataSource {
if (this.hot.hasHook('modifySourceData')) {
const valueHolder = createObjectPropListener(value);

// TODO: The `modifySourceData` for the `get` option handle property, while the same hook for `set` option handle physical column index.
this.hot.runHooks('modifySourceData', row, this.propToCol(column), valueHolder, 'set');

if (valueHolder.isTouched()) {
Expand Down Expand Up @@ -231,7 +232,8 @@ class DataSource {
if (this.hot.hasHook('modifySourceData')) {
const valueHolder = createObjectPropListener(result);

this.hot.runHooks('modifySourceData', row, this.colToProp(column), valueHolder, 'get');
// TODO: The `modifySourceData` for the `get` option handle property, while the same hook for `set` option handle physical column index.
this.hot.runHooks('modifySourceData', row, this.colToProp(this.propToCol(column)), valueHolder, 'get');

if (valueHolder.isTouched()) {
result = valueHolder.value;
Expand Down

0 comments on commit 1400327

Please sign in to comment.