App Menu broken with PrimeNG 4.1.0

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
paulswan
Posts: 94
Joined: 27 Apr 2017, 08:19

13 Jul 2017, 03:06

The eventEmitter property has been removed from MenuItem in PrimeNG 4.1.0 and this causes a compile error in the app.menu.component.ts file.

This is the code that fails:

Code: Select all

	if (item.command) {
            if (!item.eventEmitter) {
                item.eventEmitter = new EventEmitter();
                item.eventEmitter.subscribe(item.command);
            }

            item.eventEmitter.emit({
                originalEvent: event,
                item: item
            });
        }
If you replace with the following it will work. I got this from the changes to breacrumb.ts which uses the same code.

Code: Select all

        if (item.command) {
            item.command({
                originalEvent: event,
                item: item
            });
        }

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

14 Jul 2017, 09:11

Yes, true and we are working on the new release of ultima with some enhancements right now.

Regards

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests