React-table: how does minWidth work exactly?

Created on 30 Jan 2018  路  3Comments  路  Source: tannerlinsley/react-table

What version of React-Table are you using?

6.5.1

What bug are you experiencing, or what feature are you proposing?

When I set minWidth to a column, I expect it is really the minimum width for this column but it's not. I could still resize this column to any width less than the value of minWidth.

https://codesandbox.io/s/6z6qyjrpxr

What are the steps to reproduce the issue?

  1. resize the first name column
  2. the column can be resized to a very small width while its minWidth is set to 200

Most helpful comment

The width won't go less than 200px if you resize the browser window (or the container of the react-table).
If you manually resize the column the minWidth restriction won't apply.

All 3 comments

The width won't go less than 200px if you resize the browser window (or the container of the react-table).
If you manually resize the column the minWidth restriction won't apply.

@DamianFekete is correct. Closing now.

how to remove element.sty;e {min-width: 900px;} from "react-table": "6.10.0",
actually I want to remove all child element element.style to blank.

I used style={{}}/>
but not working

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielmariz picture danielmariz  路  3Comments

krishna-shenll picture krishna-shenll  路  3Comments

Codar97 picture Codar97  路  3Comments

mlajszczak picture mlajszczak  路  3Comments

Abdul-Hameed001 picture Abdul-Hameed001  路  3Comments