I have a parent component which has two child components (siblings). These child components have event and listen behaviors. Now I need multiple instance of this parent component in a web page, but I run into an issue where all the instances interact when we trigger the event, since the Listen decorator's Target is attached to body. As far as I know, if there are sibling components, we need to use the target as body and if it is parent/child then it is not necessary to use the target.
Is there any work around to restrict this event trigger to not interact with the multi-instance scenario of the parent component?
Use Listen to listen to the events dispatched to the window. Parent-child interactions should go through the event attributes. Look at this sample!
ChildParent