could someone of you please explain to me what is going wrong in the following scenario.
There are two WD views. Both embed other views that could fire the same event. Both views have an event handler for this event.
Step 1: view 1 is called using plug navigation. The embedded view doesn't raise the event so the event handler in view 1 isn't called. View 1 is left using plug navigation. Everything is fine.
Step 2: view 2 is called later on using plug navigation. The embedded view raises the event. And the event handler of view 1 is called. As view 1 isn't active this leads to the error "Cannot navigate from view View1 because it is not part of the current view assembly".
Why does the event handler of view 1 get called? And why doesn't the event handler of view 2 get called?
If only view 2 is called without view 1 before the event handler of view 2 is called correctly. So the first event handler found in an event handler stack wins when the event is raised? Is this the desired behaviour? Or am I doing something wrong?
And just in case this is important, view 1 and view 2 belong to the same component.
Thanks for your help and best regards,