diff options
author | Michael Leibman <michael.leibman@gmail.com> | 2013-07-29 13:38:35 -0700 |
---|---|---|
committer | Michael Leibman <michael.leibman@gmail.com> | 2013-07-29 13:38:35 -0700 |
commit | d66cc78614c8dabf80c01815d7dabcd8e8ab34a1 (patch) | |
tree | 6e5d1498dc6cbc708a857f02091055ead1b6b303 /slick.grid.js | |
parent | f171ce2d76ca899c603b7a9532fd97768bb74302 (diff) | |
download | SlickGrid-d66cc78614c8dabf80c01815d7dabcd8e8ab34a1.zip SlickGrid-d66cc78614c8dabf80c01815d7dabcd8e8ab34a1.tar.gz SlickGrid-d66cc78614c8dabf80c01815d7dabcd8e8ab34a1.tar.bz2 |
Fix #605 by directly checking for "slick-cell" on click.
Diffstat (limited to 'slick.grid.js')
-rw-r--r-- | slick.grid.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slick.grid.js b/slick.grid.js index 6fdbdba..d40e546 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -2214,7 +2214,8 @@ if (typeof Slick === "undefined") { if (!currentEditor) {
// if this click resulted in some cell child node getting focus,
// don't steal it back - keyboard events will still bubble up
- if (e.target != document.activeElement) {
+ // IE9+ seems to default DIVs to tabIndex=0 instead of -1, so check for cell clicks directly.
+ if (e.target != document.activeElement || $(e.target).hasClass("slick-cell")) {
setFocus();
}
}
|