From 20b55f8ad7196e4cc6a201bd55cad82718630596 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 17 Jul 2020 08:15:09 -0400 Subject: [PATCH] Fix initial transitions --- src/utilities/popover.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/popover.ts b/src/utilities/popover.ts index 1d7df293..608adad3 100644 --- a/src/utilities/popover.ts +++ b/src/utilities/popover.ts @@ -77,7 +77,7 @@ export default class Popover { this.isVisible = true; this.popover.hidden = false; this.popover.clientWidth; // force reflow - this.popover.classList.add(this.options.visibleClass); + requestAnimationFrame(() => this.popover.classList.add(this.options.visibleClass)); if (this.popper) { this.popper.destroy();