diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-03 06:19:17 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-03 06:19:17 +0900 |
| commit | 8abe8042d70de692f3a16e9812e20ad6aae4a0f4 (patch) | |
| tree | 519d90427c2fb1af6dac9e1f9457636cdf8dd71a /src/client | |
| parent | :art: (diff) | |
| download | sharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.tar.gz sharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.tar.bz2 sharkey-8abe8042d70de692f3a16e9812e20ad6aae4a0f4.zip | |
Fix bug
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/reactions-viewer.details.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.details.vue b/src/client/app/common/views/components/reactions-viewer.details.vue index 728c58a704..4f1d14b77c 100644 --- a/src/client/app/common/views/components/reactions-viewer.details.vue +++ b/src/client/app/common/views/components/reactions-viewer.details.vue @@ -46,6 +46,10 @@ export default Vue.extend({ this.$nextTick(() => { const popover = this.$refs.popover as any; + if (this.source == null) { + this.destroyDom(); + return; + } const rect = this.source.getBoundingClientRect(); const x = rect.left + window.pageXOffset + (this.source.offsetWidth / 2); |