Skip to content

Commit

Permalink
fix(Transactions): disable cellNav on startup
Browse files Browse the repository at this point in the history
This commit ensures that cellNavigation is not active on the grid's
initialization for a better UX.
  • Loading branch information
Jonathan Niles committed Sep 8, 2016
1 parent 2a21be1 commit d61e25b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/js/services/grid/TransactionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ function TransactionService(util, uiGridConstants, bhConstants) {
// this array stores the transactions ids currently being edited.
this._edits = [];

// cellNav is not enabled by default
this._cellNavEnabled = false;

gridOptions.cellEditableCondition = cellEditableCondition;
gridOptions.enableCellEditOnFocus = true;

util.after(gridOptions, 'onRegisterApi', function onRegisterApi(api) {
this.gridApi = api;

// cellNav is not enabled by default
this.disableCellNavigation();

// on each row rendering, recompute the transaction row indexes
api.core.on.rowsRendered(null, createTransactionIndexMap.bind(this));
}.bind(this));
Expand Down

0 comments on commit d61e25b

Please sign in to comment.