mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
Parser select - fix for IE10+ not allowing select options to be clicked
This commit is contained in:
parent
b5747566e6
commit
45e4ef1223
@ -101,16 +101,20 @@
|
||||
// this flag prevents the updateCell event from being spammed
|
||||
// it happens when you modify input text and hit enter
|
||||
var focused = false,
|
||||
restoreValue = function(){
|
||||
restoreValue = function(isTbody){
|
||||
// focused = false; // uncomment this line to prevent auto-accepting changes
|
||||
// make sure we restore original values
|
||||
// isTbody is needed to prevent the select from closing in IE
|
||||
// see https://connect.microsoft.com/IE/feedbackdetail/view/962618/
|
||||
if (isTbody) {
|
||||
$(':focus').blur();
|
||||
}
|
||||
return;
|
||||
};
|
||||
// bind to .tablesorter (default class name)
|
||||
$(this).children('tbody')
|
||||
.on('mouseleave', function(){
|
||||
restoreValue();
|
||||
.on('mouseleave', function(e){
|
||||
restoreValue(e.target.tagName === 'TBODY');
|
||||
})
|
||||
.on('focus', 'select, input, textarea', function(){
|
||||
focused = true;
|
||||
|
Loading…
Reference in New Issue
Block a user