You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a component called index.vue to list all customers.
and a child component customerModal.vue to control the v-modal for Edit and Create Cusotmer form.
I am using v-table to list the customers details with button actions
when I go to next page using b-pagination the btn edit does not show the corresponding v-modal. While in the first page all edit btns for each customer are working just fine.
However if I add the create btn to the list in the second page, it will work fine
The text was updated successfully, but these errors were encountered:
MuaathAlhaddad
changed the title
b-pagination does not emit IDs of v-modal to the child when changing page
Parent component only pass the dynamic v-modal ID to the child of the first page in pagination
Jun 15, 2020
@Hiws
I have uploaded the target code here, But I am sorry I had an extra error where the modal can not be triggered by edit at all and I could not solve it the playground.
I am using
vue@2.6.11
andbootstrap-vue@2.11.0
I am having a component called
index.vue
to list all customers.and a child component
customerModal.vue
to control thev-modal
forEdit
andCreate
Cusotmer form.I am using
v-table
to list the customers details with button actionsindex.vue //customer create btn
index.vue //customer edit btn
index.vue //b-pagination
customerModal.vue
The problem
when I go to next page using
b-pagination
the btnedit
does not show the corresponding v-modal. While in the first page alledit
btns for each customer are working just fine.However if I add the
![enter image description here](https://camo.githubusercontent.com/567f5d773f71a540f80834baef66f71d963096342f666b18f305f994660212e9/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f77427233382e676966)
create
btn to the list in the second page, it will work fineThe text was updated successfully, but these errors were encountered: