From 4fbbfffa475f7770a46bcecac43cd31284c62f1d Mon Sep 17 00:00:00 2001 From: John Glynn Date: Mon, 11 Feb 2019 10:24:27 -0600 Subject: [PATCH] Fix #9 --- src/ColumnResizer.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ColumnResizer.js b/src/ColumnResizer.js index 232c9a2..cace60d 100644 --- a/src/ColumnResizer.js +++ b/src/ColumnResizer.js @@ -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(); } } @@ -184,7 +184,9 @@ export default class ColumnResizer { if (cb) { cb(e); } - this.serializeStore(); + if (t.opt.serialize) { + this.serializeStore(); + } } this.grip = null; }; @@ -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