Skip to content
Permalink
Browse files

Fix: Don't fill cells which have their column marked as disabled for …

…being able to trigger autofill

- DD-777
  • Loading branch information...
Allan Jardine
Allan Jardine committed Mar 8, 2019
1 parent 6290ad5 commit a0bb3de0ad19e14e9ce7f3c04e59427dd88d5b0c
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/dataTables.autoFill.js
@@ -946,6 +946,7 @@ $.extend( AutoFill.prototype, {

var dt = this.s.dt;
var cell;
var columns = dt.columns( this.c.columns ).indexes();

// Potentially allow modifications to the cells matrix
this._emitEvent( 'preAutoFill', [ dt, cells ] );
@@ -966,7 +967,9 @@ $.extend( AutoFill.prototype, {
for ( var j=0, jen=cells[i].length ; j<jen ; j++ ) {
cell = cells[i][j];

cell.cell.data( cell.set );
if ( columns.indexOf(cell.index.column) !== -1 ) {
cell.cell.data( cell.set );
}
}
}

0 comments on commit a0bb3de

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