Skip to content

Commit

Permalink
editor: Fix edge case regression from focus preservation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Oct 16, 2013
1 parent 2d0bea8 commit 576f69e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ function createSharedEditor(column, originalRenderCell){
column.grid.row(parentNode).data, activeValue, parentNode,
activeOptions ? lang.delegate(options, activeOptions) : options));

// reset state now that editor is deactivated
activeCell = activeValue = activeOptions = null;
// Reset state now that editor is deactivated;
// reset focusedCell as well since some browsers will not trigger the
// focusout event handler in this case
activeCell = activeValue = activeOptions = focusedCell = null;
}

function dismissOnKey(evt){
Expand Down

0 comments on commit 576f69e

Please sign in to comment.