Skip to content

Commit 6167e5d

Browse files
Sukanya Pandeyrfrandse
authored andcommitted
Resolve bug while selecting the checkboxes
-While selecting the checkbox in the table, user have to click twice to select the data. -The issue occured after upgrading vue-bootstrap. -vue-bootstrap community improved the code for checkbox toggling which causes the issue, openBmc code is been updated to support the new changes. Signed-off-by: Sukanya Pandey <[email protected]> Change-Id: I0e3c3e2248c22bcf805eb6f0b73378bcf4e8ea61
1 parent f5b3670 commit 6167e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Mixins/BVTableSelectableMixin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const BVTableSelectableMixin = {
2525
this.tableHeaderCheckboxModel = true;
2626
} else {
2727
this.tableHeaderCheckboxIndeterminate = true;
28-
this.tableHeaderCheckboxModel = false;
28+
this.tableHeaderCheckboxModel = true;
2929
}
3030
}
3131
},
3232
onChangeHeaderCheckbox(tableRef) {
3333
if (tableRef) {
34-
if (this.tableHeaderCheckboxModel) tableRef.clearSelected();
35-
else tableRef.selectAllRows();
34+
if (this.tableHeaderCheckboxModel) tableRef.selectAllRows();
35+
else tableRef.clearSelected();
3636
}
3737
},
3838
},

0 commit comments

Comments
 (0)