primeng icon indicating copy to clipboard operation
primeng copied to clipboard

contextMenu does not work with tabMenu

Open balkarov opened this issue 1 year ago • 2 comments

Describe the bug

My code:

<p-tabMenu #tabs  [model]="tabItems" [activeItem]="selected" [scrollable]="true"></p-tabMenu>
<p-contextMenu [target]="tabs" [model]="items"></p-contextMenu>

And menu does not show. But If example with image works.

<img #img src="assets/showcase/images/demo/nature/nature3.jpg" alt="Logo" aria-haspopup="true">
<p-contextMenu [target]="img" [model]="items"></p-contextMenu>

Environment

Angular, windows, console, webstorm

Reproducer

https://stackblitz.com/edit/primeng-tabmenu-demo-wpnvhf?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.module.ts

Angular version

14.0.4

PrimeNG version

14.0.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

16.14.2

Browser(s)

Chrome

Steps to reproduce the behavior

Add tabMenu Add contextMenu Bind contextMenu to tabMenu ContextMenu does not work

Expected behavior

Works

balkarov avatar Jul 19 '22 13:07 balkarov

Any help?

balkarov avatar Jul 27 '22 07:07 balkarov

I added reproducer link

balkarov avatar Aug 02 '22 09:08 balkarov

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

mertsincan avatar Nov 09 '22 21:11 mertsincan