From 576f69ee52df53f2274dcdd9bece5a831369a12f Mon Sep 17 00:00:00 2001 From: "Kenneth G. Franqueiro" Date: Wed, 16 Oct 2013 16:31:24 -0400 Subject: [PATCH] editor: Fix edge case regression from focus preservation fix --- editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor.js b/editor.js index 1ebf33e9d..740c0e0c0 100644 --- a/editor.js +++ b/editor.js @@ -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){