diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index 2e7a75936..a06f23191 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -76,7 +76,7 @@ type: "bi.center_adapt", horizontalAlign: o.textAlign, element: this, - ref(ref) { + ref: (ref) => { self.containerRef = ref; }, hgap: o.hgap, @@ -167,7 +167,7 @@ tgap: o.iconPosition === "top" ? o.iconGap : 0, bgap: o.iconPosition === "bottom" ? o.iconGap : 0, }; - + var items = [this.icon, BI.extend({ el: this.text }, gapContainer)]; if (o.iconPosition === "right" || o.iconPosition === "bottom") { items.reverse();