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

Presence of table header is not consistent w.r.t. empty data #2088

Open
zegkljan opened this issue Jun 28, 2019 · 0 comments
Open

Presence of table header is not consistent w.r.t. empty data #2088

zegkljan opened this issue Jun 28, 2019 · 0 comments

Comments

@zegkljan
Copy link

Steps to reproduce

When the table has no data at the beginning, no header is displayed. However, if the table had some data but these later disappeared (emptied), the header is displayed.

Which browser?

Google Chrome Version 75.0.3770.100 (Official Build) (64-bit) on Arch Linux

What is expected?

First and foremost, the behaviour should be consistent. That means that when there is no data, the header should either be always present (which I think is the more correct behaviour) or never present, regardless of when did the data get empty.
Ideally, I should be able to choose how to behave in case there is no data.

Reproduction Link

Using the unmodified sample for search and empty state from the table documentation page: https://codesandbox.io/s/p7n7xjjr3j?module=App.vue - when the search produces no results, the headers are visible, but if I comment out the single line in the created() method (i.e. the searched field is and remains empty from the very start) the header is not displayed.

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

1 participant