Fix initial transitions

This commit is contained in:
Cory LaViska
2020-07-17 08:15:09 -04:00
parent 9ddc7aa797
commit 20b55f8ad7

View File

@@ -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();