pass host element instead of class
This commit is contained in:
@@ -180,7 +180,7 @@ export abstract class UmbTreeItemContextBase<TreeItemType extends UmbTreeItemMod
|
||||
throw new Error('Could not request children, tree item is not set');
|
||||
}
|
||||
|
||||
this.#sectionSidebarContext?.toggleContextMenu(this, {
|
||||
this.#sectionSidebarContext?.toggleContextMenu(this.getHostElement(), {
|
||||
entityType: this.entityType,
|
||||
unique: this.unique,
|
||||
headline: this.getTreeItem()?.name || '',
|
||||
|
||||
Reference in New Issue
Block a user