Menubar event emmiter broken after hide and show #857
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hi,
I use Menubar component wrapped in a div with ngIf:
On one of the items have a command set.
When I show the component for the first time everything works fine and command is called as expected. After the component is hidden and then showed again, when I click 'Logout' item I get the error "ObjectUnsubscribedError". Source of the error is call: "item.eventEmitter.emit(event);" from MenubarSub class.
It works fine after setting eventEmmiter anew with each call, but I'm not sure if that's the optimal solution. Maybe I'm using it wrong?
The text was updated successfully, but these errors were encountered: