gd-bs 6.9.6 → 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/build/bs.js +1 -1
- package/build/components/dropdown/index.js +7 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +3 -2
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +8 -0
- package/src/styles/_custom.scss +1 -1
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.
|
|
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
|
@@ -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
|