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
Many components have specific behaviours depending on which portion of the element is being interacted with
Specifically in some cases, a child component may rest in the very center of the parent component that is being interacted with
This child component will now be the main target of clickElem or hoverElem and can potentially hijack the expected experience of the target element for its own
Current workarounds
dig through the shadowRoot of the parent to find a different child element that won't hijack the expected behaviour from parent (if one exists)
home brew a clickAt or hoverAt solve by using elem.getBoundingClientRect() to generate a DOMRect() for position target information
Suggestion
Provide new functions clickElemAt and hoverElemAt which will interact with the target element at some offset from their origin instead
Problem Definition
clickElem
orhoverElem
and can potentially hijack the expected experience of the target element for its ownCurrent workarounds
clickAt
orhoverAt
solve by usingelem.getBoundingClientRect()
to generate aDOMRect()
for position target informationSuggestion
clickElemAt
andhoverElemAt
which will interact with the target element at some offset from their origin insteadThe text was updated successfully, but these errors were encountered: