});
}
if (createdList) {
- this.list.parentElement.insertBefore(this.element, this.list.nextSibling);
+ this.element.insertAdjacentElement("afterend", this.list);
const parent = this.element.parentElement;
Simple_1.default.initFragment(parent, this.list);
this.dropdownContainerId = Util_1.default.identify(parent);
}
if (createdList) {
- this.list.parentElement!.insertBefore(this.element, this.list.nextSibling);
+ this.element.insertAdjacentElement("afterend", this.list);
const parent = this.element.parentElement!;
UiDropdownSimple.initFragment(parent, this.list);