gd-bs 6.6.89 → 6.6.90

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.89",
3
+ "version": "6.6.90",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -504,6 +504,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
504
504
  });
505
505
  } else {
506
506
  let isForm = menu.nodeName == "SELECT";
507
+ let value: string[] = [];
507
508
 
508
509
  // Parse the items
509
510
  let items = this.props.items || [];
@@ -512,6 +513,9 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
512
513
  let item = isForm ? new DropdownFormItem(items[i], this.props) : new DropdownItem(items[i], this.props);
513
514
  this._items.push(item);
514
515
 
516
+ // See if this item is selected
517
+ if (item.isSelected) { value.push(item.props.value || item.props.text); }
518
+
515
519
  // See if this isn't for a form
516
520
  if (!isForm) {
517
521
  // Configure the item events
@@ -522,6 +526,9 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
522
526
  menu.appendChild(item.el);
523
527
  }
524
528
 
529
+ // Set the value
530
+ this.setValue(value);
531
+
525
532
  // See if this is a form
526
533
  if (isForm) {
527
534
  // Ensure the selected values match the index