Skip to content

Commit

Permalink
solving radio buttons pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
CarliPinell committed Oct 2, 2024
1 parent 1b85b35 commit edd6255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/renderer/form-record-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<b-form-checkbox
v-model="selectedRows"
:value="item"
:checked="selected"
@change="onMultipleSelectionChange(index)"/>
</template>
<template v-if="isFiledownload(field, item)">
Expand Down Expand Up @@ -411,11 +410,12 @@ export default {
this.$emit('input', data);
},
onRadioChange(selectedItem, index) {
const globalIndex = (this.currentPage - 1) * this.perPage + index;
if(this.source?.singleField) {
let valueOfColumn = selectedItem[this.source.singleField];
this.componentOutput(valueOfColumn);
} else {
selectedItem = { ...selectedItem, selectedRowIndex: index};
selectedItem = { ...selectedItem, selectedRowIndex: globalIndex};
this.componentOutput(selectedItem);
}
},
Expand Down

0 comments on commit edd6255

Please sign in to comment.