Skip to content

Commit

Permalink
Core: allow use of select & buttons in the header. Fixes #625
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed May 26, 2014
1 parent b0ca987 commit 06bbea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.tablesorter.js
Expand Up @@ -1225,7 +1225,7 @@
// set timer on mousedown
if (type === 'mousedown') {
downTime = new Date().getTime();
return e.target.tagName === "INPUT" ? '' : !c.cancelSelection;
return /(input|select|button|textarea)/i.test(e.target.tagName) ? '' : !c.cancelSelection;
}
if (c.delayInit && isEmptyObject(c.cache)) { buildCache(table); }
// jQuery v1.2.6 doesn't have closest()
Expand Down

0 comments on commit 06bbea7

Please sign in to comment.