We dont support button html (#7500)

pull/7467/head
Hariom Balhara 2023-03-03 22:00:44 +05:30 committed by GitHub
parent 62dcd6612c
commit b8b24c04dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {