Merge pull request #1643 from PR0M3TH3AN/fix-embed-modal-buttons-12116875342849342102

Fix unresponsive buttons in Embed Video modal
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-24 15:56:17 -05:00
commit 0f502a79c2
1 file changed
+8 -2
+8 -2
View File
@@ -98,8 +98,14 @@ export class EmbedVideoModal {
const wrapper = this.document.createElement("div");
wrapper.innerHTML = html;
this.removeTrackingScripts(wrapper);
this.container.appendChild(wrapper);
modal = wrapper.querySelector("#embedVideoModal");
const fragment = this.document.createDocumentFragment();
while (wrapper.firstChild) {
fragment.appendChild(wrapper.firstChild);
}
this.container.appendChild(fragment);
modal = this.container.querySelector("#embedVideoModal");
}
if (!modal) {