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
We are using ExternalLink on multiple instances in Jetpack monorepo, using the onClick event handler to track clicks. After a recent change implemented, any code passed to onClick prop is being ignored by this component.
You can reproduce the bug by adding an onClick event handler to ExternalLink. After clicking the link, you will notice it is not calling doSomething function.
Description
We are using ExternalLink on multiple instances in Jetpack monorepo, using the onClick event handler to track clicks. After a recent change implemented, any code passed to onClick prop is being ignored by this component.
This is related to a recent change implemented for validating anchor links in #42259.
Step-by-step reproduction instructions
You can reproduce the bug by adding an
onClick
event handler toExternalLink
. After clicking the link, you will notice it is not callingdoSomething
function.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: