mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Fix: Column visiblity was using $().remove() to remove elements from the
DOM which results in any events attached being detached by jQuery. Need to use `detach()` - Thanks to sebgoe in thread 19360
This commit is contained in:
parent
b29fa07501
commit
87e0d43844
@ -1 +1 @@
|
||||
0bad6ae070822c2ed55a47610f7f6262926353d5
|
||||
efedff77e37c7a32cca9710ee7e008968047801e
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -7921,7 +7921,7 @@
|
||||
}
|
||||
else {
|
||||
// Remove column
|
||||
$( _pluck( settings.aoData, 'anCells', column ) ).remove();
|
||||
$( _pluck( settings.aoData, 'anCells', column ) ).detach();
|
||||
|
||||
col.bVisible = false;
|
||||
_fnDrawHead( settings, settings.aoHeader );
|
||||
|
Loading…
Reference in New Issue
Block a user