gd-bs 6.3.0 → 6.3.1
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
|
@@ -706,9 +706,9 @@
|
|
|
706
706
|
}]
|
|
707
707
|
});
|
|
708
708
|
window["ddl"] = GD.Components.Dropdown({
|
|
709
|
-
autoSelect:
|
|
709
|
+
autoSelect: true,
|
|
710
710
|
el: document.querySelector("#ddl"),
|
|
711
|
-
isSplit:
|
|
711
|
+
isSplit: false,
|
|
712
712
|
label: "My Dropdown",
|
|
713
713
|
onChange: function(item, ev) {
|
|
714
714
|
alert("Selected Item: " + (item ? item.text : "None"));
|
package/package.json
CHANGED
|
@@ -255,7 +255,6 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
255
255
|
options: {
|
|
256
256
|
arrow: false,
|
|
257
257
|
trigger: "click",
|
|
258
|
-
content: this._elMenu,
|
|
259
258
|
offset: [0, 4]
|
|
260
259
|
}
|
|
261
260
|
};
|
|
@@ -265,6 +264,9 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
265
264
|
|
|
266
265
|
// Create a popover to display the menu
|
|
267
266
|
this._popover = Popover(props);
|
|
267
|
+
|
|
268
|
+
// Set the popover content
|
|
269
|
+
this._popover.setContent(this._elMenu);
|
|
268
270
|
}
|
|
269
271
|
}
|
|
270
272
|
|