gd-bs 6.9.7 → 6.9.8

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/index.html CHANGED
@@ -430,8 +430,9 @@
430
430
  id: "DDLExample",
431
431
  name: "DDLExample",
432
432
  title: "This is a dropdown",
433
- type: GD.Components.FormControlTypes.Dropdown,
433
+ type: GD.Components.FormControlTypes.MultiDropdownCheckbox,
434
434
  description: "This is a single dropdown option.",
435
+ placeholder: "Select an item...",
435
436
  items: [{
436
437
  text: "Test 1",
437
438
  title: "This is the first item.",
@@ -455,7 +456,7 @@
455
456
  isDisabled: true
456
457
  }],
457
458
  onChange: function (item) {
458
- item ? alert(item.text + " was selected.") : null;
459
+ //item ? alert(item.text + " was selected.") : null;
459
460
  }
460
461
  }
461
462
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.9.7",
3
+ "version": "6.9.8",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -579,6 +579,14 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
579
579
  multi: this.props.multi,
580
580
  value: this.generateCheckboxValue(this.props.value),
581
581
  onChange: this.props.onChange ? (selectedItems, allItems, ev) => {
582
+ // See if this is a multi checkbox
583
+ if (this.props.multi) {
584
+ // Toggle the menu if it's not visible
585
+ setTimeout(() => {
586
+ this.isVisible ? null : this.toggle();
587
+ }, 25);
588
+ }
589
+
582
590
  // Pass the current values
583
591
  this.props.onChange(selectedItems, ev);
584
592
  } : null