gd-bs 6.6.12 → 6.6.14

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.
@@ -35,7 +35,7 @@ var CheckboxItem = /** @class */ (function () {
35
35
  this._elCheckbox.readOnly = this._parent.isReadonly ? true : false;
36
36
  this._elCheckbox.required = this._parent.required ? true : false;
37
37
  // Default the title property for the checkbox
38
- this._elCheckbox.title = this.props.label || this._parent.title || "";
38
+ this._elCheckbox.title = this.props.title || this.props.label || this._parent.title || "";
39
39
  }
40
40
  // See if we are rendering a row
41
41
  var renderRow = typeof (this._parent.colSize) === "number" ? this._parent.colSize > 0 : false;
@@ -346,8 +346,11 @@ var _Dropdown = /** @class */ (function (_super) {
346
346
  item.el.addEventListener("click", function (ev) {
347
347
  // Prevent other events to occur
348
348
  ev.stopPropagation();
349
- // Toggle the menu if it's visible
350
- _this.isVisible ? _this.toggle() : null;
349
+ // Ensure this isn't a multi-select
350
+ if (_this.isMulti != true) {
351
+ // Toggle the menu if it's visible
352
+ _this.isVisible ? _this.toggle() : null;
353
+ }
351
354
  // Execute the event
352
355
  _this.props.onChange ? _this.props.onChange(_this.getValue(), ev) : null;
353
356
  });
@@ -38,6 +38,7 @@ var DropdownItem = /** @class */ (function () {
38
38
  this._el.classList.add("dropdown-header");
39
39
  this._props.isDisabled ? this._el.classList.add("disabled") : null;
40
40
  this._el.innerText = this._props.text == null ? "" : this._props.text;
41
+ this._props.title ? this._el.title = this._props.title : null;
41
42
  }
42
43
  else {
43
44
  // See if we are rendering this in a nav bar
@@ -48,6 +49,7 @@ var DropdownItem = /** @class */ (function () {
48
49
  this._elLink.classList.add("dropdown-item");
49
50
  this._props.isDisabled ? this._elLink.classList.add("disabled") : null;
50
51
  this._props.target ? this._elLink.setAttribute("data-bs-target", this._props.target) : null;
52
+ this._props.title ? this._elLink.title = this._props.title : null;
51
53
  this._props.toggle ? this._elLink.setAttribute("data-bs-toggle", this._props.toggle) : null;
52
54
  this._elLink.href = this._props.href || "#";
53
55
  this._elLink.innerText = this._props.text == null ? "" : this._props.text;
@@ -62,6 +64,7 @@ var DropdownItem = /** @class */ (function () {
62
64
  this._elLink.classList.add("dropdown-item");
63
65
  this._props.isDisabled ? this._elLink.classList.add("disabled") : null;
64
66
  this._props.target ? this._elLink.setAttribute("data-bs-target", this._props.target) : null;
67
+ this._props.title ? this._elLink.title = this._props.title : null;
65
68
  this._props.toggle ? this._elLink.setAttribute("data-bs-toggle", this._props.toggle) : null;
66
69
  this._elLink.href = this._props.href || "#";
67
70
  this._elLink.innerText = this._props.text == null ? "" : this._props.text;