Skip to content

Pointer events do not bubble up to parent composable in case links are present in annotated string #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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