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;