Skip to content

Commit

Permalink
Fix #731: Selector Ignore spacebar keydown event on input
Browse files Browse the repository at this point in the history
  • Loading branch information
maier49 authored and Kenneth G. Franqueiro committed Jan 4, 2016
1 parent c7cad95 commit 701673f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ define([
},

_handleSelectorClick: function (event) {
// Avoid double-triggering code below due to space key on input automatically triggering click (#731)
if (event.target.nodeName === 'INPUT' && event.type === 'keydown' && event.keyCode === 32) {
return;
}

var cell = this.cell(event);
var row = cell.row;

Expand Down Expand Up @@ -214,4 +219,4 @@ define([
}
}
});
});
});

0 comments on commit 701673f

Please sign in to comment.