diff options
author | Corentin Mors <corentin.mors@dashlane.com> | 2020-01-07 15:36:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 15:36:45 +0300 |
commit | 373e9d8eadc25a2bd6d250dd8f47d7ffbe69e338 (patch) | |
tree | eda71fe14bdffe7f19dd134d0225ae1bf2708540 /src | |
parent | afe517846f6562e75dd36bae4778c2aa60df346e (diff) |
(Bugfix) Resizing grid wasn't updating rows number (#78)
Signed-off-by: Corentin Mors <corentin.mors@dashlane.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/VirtualGrid.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/VirtualGrid.vue b/src/components/VirtualGrid.vue index 959d4075..971dc587 100644 --- a/src/components/VirtualGrid.vue +++ b/src/components/VirtualGrid.vue @@ -109,12 +109,14 @@ export default { }, created() { + window.addEventListener('resize', this.onDocumentScroll) window.addEventListener('scroll', this.onDocumentScroll) }, mounted() { this.onDocumentScroll() }, beforeDestroy() { + window.removeEventListener('resize', this.onDocumentScroll) window.removeEventListener('scroll', this.onDocumentScroll) }, |