Skip to content

Commit

Permalink
follow up selections
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Aug 22, 2024
1 parent 19130b0 commit 856477a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/utils/1m.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,22 @@ function parentBroadcastsCRUD(data_harmonizers, schema_tree) {
},
});
document.dispatchEvent(event);

// TODO: Follow up selections
// harmonizes behaviour between enter and clicks for enums
data_harmonizers[node.name].hot.selectCell(row, prop);
data_harmonizers[node.name].hot.runHooks(
'afterSelection',
row,
prop
);
data_harmonizers[node.name].hot.selectCell(row + 1, prop);
data_harmonizers[node.name].hot.runHooks(
'afterSelection',
row + 1,
prop
);

});
}
}
Expand Down Expand Up @@ -485,7 +501,7 @@ function childListensCRUD(data_harmonizers, schema_tree) {
// afterChange
// assign event to DH container?
document.addEventListener('handsontableUpdate', function (event) {
const { row, oldValue, newValue, sourceTable, sharedKey } =
const { row, col, oldValue, newValue, sourceTable, sharedKey } =
event.detail;
const childCol = data_harmonizers[node.name].getColumnIndexByFieldName(
sharedKey.name
Expand Down

0 comments on commit 856477a

Please sign in to comment.