Revert "Do not scroll cards into view"

This reverts commit abf67138e7.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-10-13 10:48:48 +02:00
parent c1423cde5a
commit d0147cb03e

View File

@@ -131,6 +131,13 @@ export default {
return [...this.card.labels].sort((a, b) => (a.title < b.title) ? -1 : 1) return [...this.card.labels].sort((a, b) => (a.title < b.title) ? -1 : 1)
}, },
}, },
watch: {
currentCard(newValue) {
if (newValue) {
this.$nextTick(() => this.$el.scrollIntoView())
}
},
},
methods: { methods: {
openCard() { openCard() {
const boardId = this.card && this.card.boardId ? this.card.boardId : this.$route.params.id const boardId = this.card && this.card.boardId ? this.card.boardId : this.$route.params.id