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 <sukapan1@in.ibm.com>
Change-Id: I0e3c3e2248c22bcf805eb6f0b73378bcf4e8ea61
diff --git a/src/components/Mixins/BVTableSelectableMixin.js b/src/components/Mixins/BVTableSelectableMixin.js
index d41ed22..b4f0b95 100644
--- a/src/components/Mixins/BVTableSelectableMixin.js
+++ b/src/components/Mixins/BVTableSelectableMixin.js
@@ -25,14 +25,14 @@
this.tableHeaderCheckboxModel = true;
} else {
this.tableHeaderCheckboxIndeterminate = true;
- this.tableHeaderCheckboxModel = false;
+ this.tableHeaderCheckboxModel = true;
}
}
},
onChangeHeaderCheckbox(tableRef) {
if (tableRef) {
- if (this.tableHeaderCheckboxModel) tableRef.clearSelected();
- else tableRef.selectAllRows();
+ if (this.tableHeaderCheckboxModel) tableRef.selectAllRows();
+ else tableRef.clearSelected();
}
},
},