diff --git a/apps/showcase/doc/popover/DataTableDoc.vue b/apps/showcase/doc/popover/DataTableDoc.vue index d76dd51d6..9fc123fe8 100644 --- a/apps/showcase/doc/popover/DataTableDoc.vue +++ b/apps/showcase/doc/popover/DataTableDoc.vue @@ -180,17 +180,16 @@ export default { }, methods: { displayProduct(event, product) { + this.$refs.op.hide(); + if (this.selectedProduct?.id === product.id) { - this.$refs.op.hide(); this.selectedProduct = null; } else { this.selectedProduct = product; - this.$refs.op.show(event); - // will not be needed with v4.0.6 as Popover will auto align - if (this.$refs.op.container) { - this.$refs.op.alignOverlay(); - } + this.$nextTick(() => { + this.$refs.op.show(event); + }); } }, hidePopover() { @@ -269,7 +268,7 @@ export default {