mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 19:13:02 +00:00
Fix bug
This commit is contained in:
parent
58fd46ff6f
commit
8abe8042d7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue