You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A component should only be able to select elements that are in the scope of this data-component element. Elements within other data-component elements should be handled in their own component. If that access is needed it should be explicit.
The text was updated successfully, but these errors were encountered:
Passing a second container argument (that is different from the element) makes it already more explicit (although it's probably mostly used for more specific selectors, rather than from other components, but still).
I think what we have only takes care of selecting elements down the tree. But it should be down the tree except if it's in a child component's scope, if that makes sense.
Maybe we can do something that the queried elements first will be checked in which (nearest) parent they are situated, and throw an error before returning them - unless you explicitly pass a flag that overrides this behaviour.
A component should only be able to select elements that are in the scope of this data-component element. Elements within other data-component elements should be handled in their own component. If that access is needed it should be explicit.
The text was updated successfully, but these errors were encountered: