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

Hiding 'Email' Column removes all rows #160

Open
philippviereck opened this issue Sep 25, 2023 · 1 comment
Open

Hiding 'Email' Column removes all rows #160

philippviereck opened this issue Sep 25, 2023 · 1 comment

Comments

@philippviereck
Copy link

philippviereck commented Sep 25, 2023

Hey, I'm working on a PR for huntabyte/shadcn-svelte#275 updating the docs and moving from Table.Column to Table.Display.

But now, when I hide the Email column all rows get removed. I cannot seem to figure out why.

demo.mp4

Reproduction repo: https://github.com/philippviereck/data-table

@ak4zh
Copy link

ak4zh commented May 24, 2024

Do you have a custom cell function https://svelte-headless-table.bryanmylee.com/docs/api/create-columns#columndef-cell-datacell-state-renderconfig ?

I am facing the similar issue that I cannot hide any column that has a custom cell function to render the data.

It throws the error Error: Missing state reference probably caused by this:

throw new Error('Missing `state` reference');

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