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
This is the intended behavior. Once an onTapImage callback is set, it will capture the tap event and won't allow onTapUrl to run. In order to improve this, we probably have to change the onTapImage to return a boolean to decide whether to continue calling onTapUrl.
One of the things I was trying to achieve was to link when there was a link, and display the image when there wasn't. Perhaps if there's a parent a element it could be included in the ImageMetadata so you can make decisions in the onTapImage callback with it. You could add the boolean to decide to call onTapUrl in addition to that.
Steps to Reproduce
given an image wrapped in an anchor tag
The onTapUrl handler never fires when onTapImage is implemented
HTML
`HtmlWidget` configuration
Tesing environment
Expected results
I expected the onTapUrl handler to fire. Ideally I only want the image handler to fire if there is no anchor tag around it.
Actual results
only the onTapImage handler is fired, not the onTapUrl
The text was updated successfully, but these errors were encountered: