gd-bs 5.4.2 → 5.4.5

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.
@@ -115,8 +115,9 @@ var DropdownItem = /** @class */ (function () {
115
115
  this._el.addEventListener("click", function (ev) {
116
116
  // Prevent the page from moving to the top
117
117
  ev.preventDefault();
118
- // See if we are selecting items
119
- if (_this._parent.autoSelect) {
118
+ // See if we are automatically selecting items
119
+ var autoSelect = typeof (_this._parent.autoSelect) === "boolean" ? _this._parent.autoSelect : true;
120
+ if (autoSelect) {
120
121
  // Toggle the item
121
122
  _this.toggle();
122
123
  }