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

BTable selected-items issues #1875

Closed
6 tasks done
makroxyz opened this issue May 1, 2024 · 3 comments
Closed
6 tasks done

BTable selected-items issues #1875

makroxyz opened this issue May 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@makroxyz
Copy link
Contributor

makroxyz commented May 1, 2024

Describe the bug

BTable and v-model:selected-items has some issues

  • when table items changes (for example using a provider property that paginates items)
  • when selected-items have a pre-selection

for example using provider that paginates, switching a page will loose the selected color on table.
The primaryKey property solves the table selection issue BUT the select-mode 'single' doesn't work in any case

At the end items inside the BTable are not the same even if they are the same object...

Reproduction

https://stackblitz.com/edit/github-xfblxu?file=src%2Fcomponents%2FComp.vue,src%2FApp.vue

Used Package Manager

pnpm

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@makroxyz makroxyz added the bug Something isn't working label May 1, 2024
Copy link

stackblitz bot commented May 1, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@VividLemon
Copy link
Member

VividLemon commented May 4, 2024

I'd need a reproduction for both, using a provider and using this pre-selection. I'm confused as to what you're trying to do and what is expected

I do see that when using ref('id') that you can't disselect the first value. Which is an issue.
Similarly using a bad pkey would cause other issues, which doesn't seem like a 'bug'.

@VividLemon
Copy link
Member

The given reproduction works after #1877 . The other issues mentioned do not have a reproduction. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants