primeng icon indicating copy to clipboard operation
primeng copied to clipboard

MegaMenu: click doesn't work

Open Pranen opened this issue 10 years ago • 1 comments

Hi,

Just upgraded to the newest version of primeng and wanted to migrate the megamenu. I've added a command and an url to the items in the menu, but the click-handler (set a breakpoint there) was never called.

I hope I haven't configured wrong items - here are my navItems:

this.navItems = [ { label: 'Item1', items: [[ { label: 'Sub-item 1', command: (event) => { console.log('1', event); } }, { label: 'Sub-item 4', url: 'http://www.test.com' } ]], command: (event) => { console.log('link1', event); } }]

Regards, Peter

Pranen avatar May 23 '16 12:05 Pranen

We've done some improvements in beta7 regarding menus and I can't replicate this case with it, so marking as resolved.

cagataycivici avatar May 28 '16 10:05 cagataycivici