In a flex container, I have an event on the root and an event on a navigation button. The problem is that when I click on the button, the 2 events are triggered. Is it possible to prioritise one action over the other? I would like to prioritize the navigation button event.
Thank you,
I imagine the event on the root is an on startup event ?
And you would like to skip it if you opened that view by clicking on your navigation button ?
You could, I guess, set some flag somewhere, through a parameter maybe, to tell the view's event not to run, but you probably should be rethinking your navigation/view initialization scheme.
Web applications are designed to work this way--events "bubble up" aka propagate from inner components to all of their containers. Most Ignition event definitions have a "Stop Propagation" option. Set that on your navigation button action.
(FWIW, this is not true in Vision--there, events stop at the innermost component/container that has that kind of event listener.)