Permalink
Browse files

bugfix: issue #34

  • Loading branch information...
1 parent 8fb3710 commit 7d8fe6c2c3e8808393898166f171ea8de2eee52f @warpech warpech committed Jun 27, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 jquery.handsontable.js
View
6 jquery.handsontable.js
@@ -1520,6 +1520,9 @@
if (useOriginalValue) {
priv.editProxy.val(datamap.get(priv.selStart.row, priv.selStart.col));
}
+ else if (priv.isMouseDown) {
+ priv.editProxy.val('');
+ }
if (priv.editProxy.autoResize) {
priv.editProxy.autoResize(priv.editProps);
@@ -1669,6 +1672,9 @@
$(priv.currentBorder.main).on('dblclick', interaction.onDblClick);
function onMouseUp() {
+ if (priv.isMouseDown) {
+ setTimeout(editproxy.focus, 1);
+ }
priv.isMouseDown = false;
if (priv.fillHandle && priv.fillHandle.isDragged) {
if (priv.fillHandle.isDragged > 1) {

0 comments on commit 7d8fe6c

Please sign in to comment.