gd-bs 6.6.49 → 6.6.51

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.6.49",
3
+ "version": "6.6.51",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import { ICardAction, ICardBody } from "./types";
2
- import { appendContent } from "../common";
2
+ import { appendContent, setClassNames } from "../common";
3
3
  import { CardAction } from "./action";
4
4
  import { HTMLItem } from "./templates";
5
5
 
@@ -31,7 +31,8 @@ export class CardBody {
31
31
  private configure() {
32
32
  // Set the class names
33
33
  if (this._props.className) {
34
- this._el.classList.add(this._props.className);
34
+ // Set the class names
35
+ setClassNames(this._el, this._props.className);
35
36
  }
36
37
 
37
38
  // Update the title
@@ -743,10 +743,18 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
743
743
  }
744
744
  }
745
745
 
746
- // See if no value is selected and the label exists
747
- if (value == null && this.props.label) {
748
- // Set the label
749
- this.setLabel(this.props.label);
746
+ // See if we are updating the label
747
+ if (this.props.updateLabel) {
748
+ // See if a value exists
749
+ if (value) {
750
+ // Set the label
751
+ this.setLabel(value);
752
+ }
753
+ // Else, see if label exists
754
+ else if (this.props.label) {
755
+ // Set the label
756
+ this.setLabel(this.props.label);
757
+ }
750
758
  }
751
759
 
752
760
  // See if a change event exists