Does any1 have problems with cursors in BasicTextF...
# compose
m
Does any1 have problems with cursors in BasicTextField with latest compose version? They don’t appear when focused =(
h
Which compose version are you referring to, the latest stable or alpha? Also, what is the cursorBrush you are using?
m
default compose brush. latest compose boom
h
Can you share a gif or a video where this happens? If you can include a minimal repro code that'd be great
m
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
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
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
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
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
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
yes, in my case it involves fragments. Ty for the fix