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

@row-selected in b-table not fired after calling multiple selectRow function #7187

Open
stunited-thien opened this issue Dec 20, 2023 · 0 comments

Comments

@stunited-thien
Copy link

stunited-thien commented Dec 20, 2023

Describe the bug

I used <b-table @row-selected> with pagination to display a list of items. For each row, I used the <template #cell(selected)= { rowSelected, item }> for <b-form-checkbox :checked="rowSelected" @change="rowSelected ? unSelectListRow(item) : selectListRow(item)"> . The @row-selected is used to get and change <b-form-checkbox v-model="isAllSelected"> if all items on the current page have been selected. The @row-selected works fine when I select items by using the selectRow function wrapper (selectListRow) but not when I try using it to maintain the checkbox state of the selected item after refetch the items in <b-table>.

Steps to reproduce the bug

Expected behavior

@row-selected will be fired after the selectRow loop ends

Versions

Libraries:

  • BootstrapVue: 2.23.0
  • Bootstrap: 4.6.2
  • Vue: 3.2.47

Environment:

  • Device: PC
  • OS: Window 11
  • Browser: Edge
  • Version: 120.0.2210.77

Demo link

Additional context

Add any other context about the bug here.

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