mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
BUG in resize columns (#1271)
* BUG in resize columns * rows shorter than 100 chars... * Revert "rows shorter than 100 chars..." This reverts commit b32f17a2fe8736fe276b5026997837e6f02ec909.
This commit is contained in:
parent
1079914996
commit
b75055ef38
@ -627,7 +627,7 @@ export default Base =>
|
||||
const { onResizedChange, column } = this.props
|
||||
const { resized, currentlyResizing, columns } = this.getResolvedState()
|
||||
const currentColumn = columns.find(c => c.accessor === currentlyResizing.id)
|
||||
const minResizeWidth = currentColumn ? currentColumn.minResizeWidth : column.minResizeWidth
|
||||
const minResizeWidth = currentColumn && currentColumn.minResizeWidth != null ? currentColumn.minResizeWidth : column.minResizeWidth
|
||||
|
||||
// Delete old value
|
||||
const newResized = resized.filter(x => x.id !== currentlyResizing.id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user