Skip to content
Snippets Groups Projects
Commit f09e049b authored by Simon Malesys's avatar Simon Malesys
Browse files

Auto scroll to the phenotypes table after ancestry selection

parent efd35d96
No related branches found
No related tags found
1 merge request!88Update frontend
......@@ -18,6 +18,7 @@ module.exports = {
// add your custom rules here
rules: {
"no-unused-vars": "off",
'no-console': 'off'
'no-console': 'off',
'vue/valid-v-slot': 'off'
}
}
......@@ -37,7 +37,7 @@
</div>
</section>
<section v-show="phenotypes.length">
<section id="phenotypes-section" v-show="phenotypes.length">
<h2>Select at least two GWASs to be analyzed jointly:</h2>
<v-data-table
v-model="selectedRows"
......@@ -101,6 +101,16 @@ export default {
.then(phenotypes => {
this.phenotypes = phenotypes
})
.then(() => {
// Scroll to the phenotype table after it appeared
document
.getElementById("phenotypes-section")
.scrollIntoView({
behavior: 'smooth',
block: 'start',
inline: 'nearest'
})
})
},
bulkSelect({ item: b, value }) {
const { selectedRows, current, shiftKeyOn } = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment