Commit b6245fb4 authored by Winnie Hellmann's avatar Winnie Hellmann

Reset scroll fade when filtering

parent 82f7a6a6
...@@ -113,6 +113,10 @@ export default { ...@@ -113,6 +113,10 @@ export default {
}, },
}, },
watch: { watch: {
filteredBoards() {
this.scrollFadeInitialized = false;
this.$nextTick(this.setScrollFade);
},
reload() { reload() {
if (this.reload) { if (this.reload) {
this.boards = []; this.boards = [];
......
...@@ -92,6 +92,7 @@ describe('BoardsSelector', () => { ...@@ -92,6 +92,7 @@ describe('BoardsSelector', () => {
}); });
it('shows the scroll fade if isScrolledUp', done => { it('shows the scroll fade if isScrolledUp', done => {
vm.scrollFadeInitialized = false;
scrollContainer.scrollTop = 0; scrollContainer.scrollTop = 0;
waitForScroll() waitForScroll()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment