Skip to content

Commit

Permalink
Fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
John Glynn committed Feb 11, 2019
1 parent 0f19572 commit 4fbbfff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ColumnResizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class ColumnResizer {
}
} else {
this.applyBounds();
if (t.opt.resizeMode === 'flex') {
if (t.opt.resizeMode === 'flex' && t.opt.serialize) {
this.serializeStore();
}
}
Expand Down Expand Up @@ -184,7 +184,9 @@ export default class ColumnResizer {
if (cb) {
cb(e);
}
this.serializeStore();
if (t.opt.serialize) {
this.serializeStore();
}
}
this.grip = null;
};
Expand Down Expand Up @@ -663,6 +665,7 @@ ColumnResizer.DEFAULTS = {
disabledColumns: [], //column indexes to be excluded
removePadding: true, //remove padding from the header cells.
widths: [], //array of initial column widths
serialize: true,

//events:
onDrag: null, //callback function to be fired during the column resizing process if liveDrag is enabled
Expand Down

0 comments on commit 4fbbfff

Please sign in to comment.