I have a custom text field with `BasicTextField` a...
# compose
z
I have a custom text field with
BasicTextField
and
OutlinedTextFieldDecorationBox
, and when the field is tall enough for some reason, this green teardrop shaped draggable handle appears. Is there any way to remove this, or at least style it?
z
That handle should depend on other input events, not the size of the field. If it’s not behaving like the standard android cursor handle, please file a bug
a
And you can change its color by providing
LocalTextSelectionColors
.
z
I noticed it only appears 1. When clicking into an unfocused text field that already has text and 2. When the bottom padding of the decoration box doesn’t clip the text. If it’s clipped just a tiny bit, the handle doesn’t appear. It’s unfortunately screwing with my screenshot tests, though that is more of a screenshot test library issue
z
I think that’s WAI, since we hide the handles any time their anchor point is clipped to avoid drawing them over text when it’s under other things. Is the clipping intentional in your case?
z
No it was accidental but that makes sense. I was able to make it “disappear “ by changing the colors as @Albert Chang suggested