Skip to content

Commit

Permalink
fix(comp): replace prepend not supported in IE/Salesforce
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 1, 2021
1 parent 03962b9 commit b210f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/controls/gridMenu.control.ts
Expand Up @@ -197,7 +197,7 @@ export class GridMenuControl extends MenuBaseClass<GridMenu> {
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;
Expand Down

0 comments on commit b210f9d

Please sign in to comment.