From a5a49709d4930bb4bfd5ce193b343139f3b52d1d Mon Sep 17 00:00:00 2001 From: Michael Quinn <46567561+mquinn-leverege@users.noreply.github.com> Date: Wed, 20 Feb 2019 12:09:18 -0500 Subject: [PATCH] Fix #1275 minResizeWidth not working when using functional accessor and column id (#1276) --- src/methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/methods.js b/src/methods.js index 8207aa2..8903cd6 100644 --- a/src/methods.js +++ b/src/methods.js @@ -626,7 +626,7 @@ export default Base => event.stopPropagation() const { onResizedChange, column } = this.props const { resized, currentlyResizing, columns } = this.getResolvedState() - const currentColumn = columns.find(c => c.accessor === currentlyResizing.id) + const currentColumn = columns.find(c => c.accessor === currentlyResizing.id || c.id === currentlyResizing.id) const minResizeWidth = currentColumn && currentColumn.minResizeWidth != null ? currentColumn.minResizeWidth : column.minResizeWidth // Delete old value