Assigned
Status Update
Comments
mo...@google.com <mo...@google.com> #2
Ralston, now that autofill is winding down, can you take a look?
jr...@google.com <jr...@google.com> #3
Hi ralu@google.com do we have any updates on this issue?
ra...@google.com <ra...@google.com> #4
I investigated this, and onFocusChanged is triggered for each of the links. This looks like a styling issue with TextField. Grant, can you help debug this? I noticed that adding if we add 3 links, then this issue can still be observed. Link 1 and Link 2 get the focused style initially, when you move from Link1 to Link2 to Link3, but if navigating backwards, only Link3 gets the focus styling, Link2 and Link1 do not.
ra...@google.com <ra...@google.com> #5
On second thought, Anastasia might have more context as she implemented the links feature
Description
I've encountered a bug in Compose related to focus and clickable links within an AnnotatedString. Specifically, when two clickable spans are present in the string, and the user navigates from the second link to the first using the left arrow key, the first link does not visually display a focus indicator.
While it appears as if focus is lost, the first link is indeed focused. This can be confirmed by pressing the Enter key, which triggers the toast "Clicked on link!" associated with the first link. The visual focus indicator, however, is missing.
Here is a minimal reproducible example