Fix #1275 minResizeWidth not working when using functional accessor and column id (#1276)

This commit is contained in:
Michael Quinn
2019-04-23 16:50:33 -06:00
committed by tannerlinsley
parent 71c25f571b
commit a5a49709d4
+1 -1
View File
@@ -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