gd-bs 6.6.84 → 6.6.85

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.84",
3
+ "version": "6.6.85",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -198,7 +198,10 @@ class _ListBox extends Base<IListBoxProps> implements IListBox {
198
198
  */
199
199
 
200
200
  // Gets the selected items
201
- getValue() { return this._selectedItems; }
201
+ getValue() {
202
+ // Return the value
203
+ return this.props.multi ? this._selectedItems : this._selectedItems[0];
204
+ }
202
205
 
203
206
  // Sets the options
204
207
  setOptions(items: Array<IDropdownItem> = []) {
@@ -81,7 +81,7 @@ export interface IListBox extends IBase<IListBoxProps> {
81
81
  el: HTMLElement;
82
82
 
83
83
  /** The selected listbox items. */
84
- getValue: () => Array<IDropdownItem>;
84
+ getValue: () => IDropdownItem | Array<IDropdownItem>;
85
85
 
86
86
  /** Sets the options */
87
87
  setOptions: (items: Array<IDropdownItem>) => void;