gd-bs 6.2.3 → 6.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,11 +120,11 @@ var _Button = /** @class */ (function (_super) {
120
120
  this.setText(this.props.text);
121
121
  // Set the icon if it exists
122
122
  if (this.props.iconType) {
123
+ // Update the styling of the button
124
+ this.el.classList.add("btn-icon");
123
125
  if (typeof (this.props.iconType) === "function") {
124
126
  // Append the icon
125
127
  this.el.prepend(this.props.iconType(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
126
- // Update the styling of the button
127
- this.el.classList.add("btn-icon");
128
128
  }
129
129
  // Else, it's an element
130
130
  else if (typeof (this.props.iconType === "object")) {