Is it possible to disable the text selection handles that show up in
TextFields
after a long press?
DisableSelection
exists and works for
Text
, but not
TextField
.
j
Joseph Hawkes-Cates
02/19/2022, 5:24 PM
I could not find a way to disable it altogether but there is a text selection local composition provider that you can set the color of the selection handle. I set it to transparent with worked for my field. It’s still there though so if your text field has an outline the handle will still cover the outline a bit.
Thanks, I guess that's as far as I can get with it currently. There's a bug in compose related to the handles and I was hoping to work around it until it's been officially fixed!