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
No related merge requests found
...@@ -18,6 +18,7 @@ module.exports = { ...@@ -18,6 +18,7 @@ module.exports = {
// add your custom rules here // add your custom rules here
rules: { rules: {
"no-unused-vars": "off", "no-unused-vars": "off",
'no-console': 'off' 'no-console': 'off',
'vue/valid-v-slot': 'off'
} }
} }
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
</section> </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> <h2>Select at least two GWASs to be analyzed jointly:</h2>
<v-data-table <v-data-table
v-model="selectedRows" v-model="selectedRows"
...@@ -101,6 +101,16 @@ export default { ...@@ -101,6 +101,16 @@ export default {
.then(phenotypes => { .then(phenotypes => {
this.phenotypes = 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 }) { bulkSelect({ item: b, value }) {
const { selectedRows, current, shiftKeyOn } = this; 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