diff --git a/lib/utils/1m.js b/lib/utils/1m.js index fb104140..64583abc 100644 --- a/lib/utils/1m.js +++ b/lib/utils/1m.js @@ -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 + ); + }); } } @@ -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