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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.2.3",
3
+ "version": "6.2.4",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -113,12 +113,12 @@ class _Button extends Base<IButtonProps> implements IButton {
113
113
 
114
114
  // Set the icon if it exists
115
115
  if (this.props.iconType) {
116
+ // Update the styling of the button
117
+ this.el.classList.add("btn-icon");
118
+
116
119
  if (typeof (this.props.iconType) === "function") {
117
120
  // Append the icon
118
121
  this.el.prepend((this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
119
-
120
- // Update the styling of the button
121
- this.el.classList.add("btn-icon");
122
122
  }
123
123
  // Else, it's an element
124
124
  else if (typeof (this.props.iconType === "object")) {