gd-bs 6.7.4 → 6.7.6
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/components/dropdown/index.js +1 -1
- package/build/components/floating-ui/index.js +1 -1
- 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/package.json +1 -1
- package/src/components/dropdown/index.ts +1 -1
- package/src/components/floating-ui/index.ts +4 -2
package/package.json
CHANGED
|
@@ -480,7 +480,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
|
|
|
480
480
|
this._items = [];
|
|
481
481
|
|
|
482
482
|
// Get the menu
|
|
483
|
-
let menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select");
|
|
483
|
+
let menu = this.el.querySelector(".dropdown-menu") || this.el.querySelector("select") || (this.el.classList.contains("dropdown-menu") ? this.el : null);
|
|
484
484
|
if (menu) {
|
|
485
485
|
// See if we are creating checkboxes
|
|
486
486
|
if (this.props.isCheckbox) {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
arrow, autoPlacement, computePosition, flip, hide, inline, offset, shift, size, ComputePositionConfig
|
|
3
|
+
} from "@floating-ui/dom";
|
|
2
4
|
import { setClassNames } from "../common";
|
|
3
5
|
import { IFloatingUIProps, IFloatingUI } from "./types";
|
|
4
6
|
export * as FloatingUILib from "@floating-ui/dom";
|
|
@@ -367,7 +369,7 @@ class _FloatingUI {
|
|
|
367
369
|
* Public Methods
|
|
368
370
|
*/
|
|
369
371
|
|
|
370
|
-
setContent(el) { this._elContent = el; }
|
|
372
|
+
setContent(el) { this._elContent = el; this.refresh(); }
|
|
371
373
|
|
|
372
374
|
// Hides the content
|
|
373
375
|
hide() {
|