Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the latest version Table column add property className, when value is "hidden", the Table isn't responsive #19934

Closed
1 task
wilsonyiyi opened this issue Nov 26, 2019 · 3 comments
Assignees

Comments

@wilsonyiyi
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://stackblitz.com/edit/react-ine12e

Steps to reproduce

in Table component, in any column add className property,the value is “hidden” (for hide the column)

What is expected?

the table is responsive

What is actually happening?

the table isn't responsive

Environment Info
antd 3.25.3
React latest
System macOS
Browser Chrome 78.0.3904.108(latest)
@wilsonyiyi
Copy link
Contributor Author

set Table "tableLayout=auto" can fix this issue

@afc163
Copy link
Member

afc163 commented Nov 26, 2019

set Table "tableLayout=auto" can fix this issue

👍 This wordaround is correct, you can see #17284 for more detail of current behavior.

@afc163 afc163 closed this as completed Nov 26, 2019
@afc163
Copy link
Member

afc163 commented Nov 26, 2019

Also, it is better to hidden column by remove culumn for data then hide it by className.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants