From b210f9d6a7e13f7ca69330955b674b9786dd29bb Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 30 Sep 2021 23:47:03 -0400 Subject: [PATCH] fix(comp): replace `prepend` not supported in IE/Salesforce --- packages/common/src/controls/gridMenu.control.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/controls/gridMenu.control.ts b/packages/common/src/controls/gridMenu.control.ts index afdfe973a..26150c42c 100644 --- a/packages/common/src/controls/gridMenu.control.ts +++ b/packages/common/src/controls/gridMenu.control.ts @@ -197,7 +197,7 @@ export class GridMenuControl extends MenuBaseClass { iconImageElm.src = iconImage; this._gridMenuButtonElm.appendChild(iconImageElm); } - this._menuElm.parentNode?.prepend(this._gridMenuButtonElm); + this._menuElm.parentElement!.insertBefore(this._gridMenuButtonElm, this._menuElm.parentElement!.firstChild); // show the Grid Menu when hamburger menu is clicked this.addonOptions.commandTitle = this.addonOptions.customTitle || this.addonOptions.commandTitle;