https://kotlinlang.org logo
#compose
Title
# compose
m

myanmarking

10/25/2023, 1:34 PM
Does any1 have problems with cursors in BasicTextField with latest compose version? They don’t appear when focused =(
h

Halil Ozercan

10/25/2023, 2:19 PM
Which compose version are you referring to, the latest stable or alpha? Also, what is the cursorBrush you are using?
m

myanmarking

10/25/2023, 2:20 PM
default compose brush. latest compose boom
h

Halil Ozercan

10/25/2023, 2:20 PM
Can you share a gif or a video where this happens? If you can include a minimal repro code that'd be great
m

myanmarking

10/25/2023, 2:21 PM
im at work atm 😛 will do soon if i can. thanks
👍 1
i’m having trouble isolating the issue, the project is rather large. I just checked that the latest version breaks this for me. Can you tell me any possible code related to this that was changed, if possible some commit or something so i can better try to find the cause ?
its BasicTextField so it’s probably foundation i guess
s

steelahhh

11/10/2023, 10:11 AM
Running into the same issue on 1.6.0-alpha08 using the default
cursorBrush
, and can't reproduce in a fresh project. Have you managed to track down the reason?
m

myanmarking

11/10/2023, 10:13 AM
as far as i recall, at the time of my posting, the latest version had that problem. A new version was available after, i updated and problem was gone
s

steelahhh

11/10/2023, 10:50 AM
What's more strange about this, is that I have several usages of
BasicTextField
, and only one of them behaves like this. And it seems to fix itself after I put the app in background and bring it back or lock/unlock the screen, with field visible This worked as expected on 1.6.0-alpha07, both with custom and default
cursorBrush
CC: @Halil Ozercan
h

Halil Ozercan

11/10/2023, 10:52 AM
I believe this revert should fix the issue r.android.com/2817598 but I'm not sure which release will include it cc: @Anastasia [G]
a

Anastasia [G]

11/15/2023, 5:27 PM
The revert will be live in the next release.
Our understanding is that issue happens when Fragments are involved (because we don’t track the window focus correctly in that case). But if you don’t use fragments but still observe the issue, we would love to hear from you 🙂 This is where you can post your repros https://issuetracker.google.com/issues/307323842
m

myanmarking

11/15/2023, 5:33 PM
yes, in my case it involves fragments. Ty for the fix