diff --git a/src/core/popover.js b/src/core/popover.js index ac91f5386bf330f4848b28d296169a8fd734037f..983dbe8482cd339e7464a7f110b0e491f310d386 100644 --- a/src/core/popover.js +++ b/src/core/popover.js @@ -112,6 +112,8 @@ export default class Popover extends Element { this.titleNode.innerHTML = this.options.title; this.descriptionNode.innerHTML = this.options.description; + this.renderButtons(); + // Position the popover around the given position switch (this.options.position) { case 'left': @@ -131,8 +133,6 @@ export default class Popover extends Element { this.autoPosition(position); break; } - - this.renderButtons(); } /**