Skip to content
Permalink
Browse files

Fix: Clean up wrapper class string before using it as a selector

  • Loading branch information...
Allan Jardine
Allan Jardine committed Mar 4, 2019
1 parent 13bca25 commit 2b710c73610642c350cc774189fccb0e12823061
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/dataTables.select.js
@@ -366,7 +366,7 @@ function enableMouseSelection ( dt )
}

var ctx = dt.settings()[0];
var wrapperClass = dt.settings()[0].oClasses.sWrapper.replace(/ /g, '.');
var wrapperClass = $.trim(dt.settings()[0].oClasses.sWrapper).replace(/ +/g, '.');

// Ignore clicks inside a sub-table
if ( $(e.target).closest('div.'+wrapperClass)[0] != dt.table().container() ) {

0 comments on commit 2b710c7

Please sign in to comment.
You can’t perform that action at this time.