gd-bs 6.6.24 → 6.6.26

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.
@@ -314,6 +314,8 @@ var _Offcanvas = /** @class */ (function (_super) {
314
314
  backdrop = null;
315
315
  // Set the flag
316
316
  _this._tranisitioningFl = false;
317
+ // Call the event
318
+ _this.props.onClose ? _this.props.onClose(_this.el) : null;
317
319
  }, 250);
318
320
  }
319
321
  else {
@@ -6,7 +6,7 @@ var generateIcon = function (svg, height, width, className, placeholders) {
6
6
  if (height === void 0) { height = 32; }
7
7
  if (width === void 0) { width = 32; }
8
8
  // See if placeholders exist
9
- if (placeholders > 0) {
9
+ if (typeof (placeholders) === "number" && placeholders > 0) {
10
10
  // Parse the number of placeholders
11
11
  for (var i = 0; i < placeholders; i++) {
12
12
  var regex = new RegExp("\\{" + i + "\\}", "g");