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

Dynamic table columns are not reactive #3734

Closed
GMartigny opened this issue Apr 26, 2022 · 1 comment
Closed

Dynamic table columns are not reactive #3734

GMartigny opened this issue Apr 26, 2022 · 1 comment
Assignees
Labels

Comments

@GMartigny
Copy link
Contributor

Overview of the problem

Buefy version: v0.9.20
Vuejs version: v2.6.14
OS/Browser: any

Description

When I build a table with dynamic columns, changing the columns count don't refresh the view. What I mean by "dynamic columns" is having columns as an array and looping over b-table-column with a v-for.

Steps to reproduce

  1. Have a b-table
  2. Set an array in a computed
  3. Define b-table-column that loop over the array
  4. Change the array length
  5. Observe that the number of columns hasn't change

Expected behavior

It should be reactive and refresh accordingly. It might be due to the way cells are keyed.

Actual behavior

The columns are updated, but not the column count.

Playground

@jtommy jtommy self-assigned this Apr 27, 2022
@jtommy jtommy added the bug label Apr 27, 2022
@jtommy
Copy link
Member

jtommy commented Apr 27, 2022

I think to understand the problem

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

No branches or pull requests

2 participants