Skip to content

Scheduling infrastructure for absolutely everyone.

We dont support button html (#7500)

Hariom Balharab8b24c04dced
diff --git a/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts b/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts
index a1a26048817..79e83175ea2 100644
--- a/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts
+++ b/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts
@@ -26,7 +26,7 @@ export class FloatingButton extends HTMLElement {
if (!buttonEl) {
throw new Error("Button not found");
}
- buttonEl.innerHTML = newValue;
+ buttonEl.textContent = newValue;
} else if (name === "data-hide-button-icon") {
const buttonIconEl = this.shadowRoot?.querySelector<HTMLElement>("#button-icon");
if (!buttonIconEl) {