Skip to content

Conversation

@DoronTorangy
Copy link

Preventing pointer event consumption in case parent passed clickable modifier and annotated string has urls that were not clicked

In case the passed annotated string has a link inside it, and a parent of HtmlText has a clickable modifier, it will not be invoked. I believe it should be invoked as long as HtmlText was clicked but not the link itself, for example:

text = "Hello World <a href='https://www.google.com/'>click me<a>"

in case "Hello World" was clicked, clickable modifier should be invoked
in case "click me" was clicked, open link and consume event preventing parent to consume it

…modifier and annotated string has urls that were not clicked
@DoronTorangy DoronTorangy changed the title Fix pointer event bubble to parent in case links are present in annotated string Pointer events do not bubble up to parent composable in case links are present in annotated string Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant