diff --git a/packages/common/src/extensions/extensionCommonUtils.ts b/packages/common/src/extensions/extensionCommonUtils.ts index cacd4c7cb..d7a3ba863 100644 --- a/packages/common/src/extensions/extensionCommonUtils.ts +++ b/packages/common/src/extensions/extensionCommonUtils.ts @@ -12,7 +12,7 @@ export function addCloseButtomElement(this: SlickColumnPicker | SlickGridMenu, m const closePickerButtonElm = createDomElement('button', { type: 'button', className: 'close', ariaLabel: 'Close', - innerHTML: '×', + textContent: '×', dataset: { dismiss: context instanceof SlickColumnPicker ? 'slick-column-picker' : 'slick-grid-menu' } }); menuElm.appendChild(closePickerButtonElm); diff --git a/packages/common/src/extensions/menuFromCellBaseClass.ts b/packages/common/src/extensions/menuFromCellBaseClass.ts index 691edfc67..c26a61924 100644 --- a/packages/common/src/extensions/menuFromCellBaseClass.ts +++ b/packages/common/src/extensions/menuFromCellBaseClass.ts @@ -155,7 +155,7 @@ export class MenuFromCellBaseClass extends Men menuElm.style.width = findWidthOrDefault(this.addonOptions?.width); } - const closeButtonElm = createDomElement('button', { ariaLabel: 'Close', className: 'close', type: 'button', innerHTML: '×', dataset: { dismiss: this._menuCssPrefix } }); + const closeButtonElm = createDomElement('button', { ariaLabel: 'Close', className: 'close', type: 'button', textContent: '×', dataset: { dismiss: this._menuCssPrefix } }); // -- Option List section if (!(this.addonOptions as CellMenu | ContextMenu).hideOptionSection && isColumnOptionAllowed && optionItems.length > 0) {