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
useSref handles click when anchor element contains a child element. This is an issue when the user wants the browser to handle the onClick event, by providing a target attribute.
Although the target attribute is not present in e.target, it is in e.currentTarget. So we should check for e.currentTarget when getting targetAttr
The text was updated successfully, but these errors were encountered:
mishra-ankit-learn
changed the title
useSref: Do not handle clicks when anchor element has a child element inside it
useSref: "target="_blank" ignored when link contains child elements
Mar 20, 2024
The text was updated successfully, but these errors were encountered: