I’m observing weird behavior with `BasicTextField`...
# compose-desktop
o
I’m observing weird behavior with
BasicTextField
and focus. As if there are two nested components, but I don’t create any, it’s just
BasicTextField
with some styling and interaction tracking. When I hit tab (or request focus) the
interactionSource
receives
FocusInteraction.Focus
, but the caret is not visible. When I hit tab second time, the caret appears. Any ideas?
i
As if there are two nested components
There can also be additional focus modifiers. It is probably not completely right analogy, but you can think that each modifier adds a virtual container around the component.
TextField
itself has a focus modifier, so if you add your own focus modifier, there are two virtual focusable entities.
o
Ah, I see, thanks. Indeed, there was an extra
focusable
modifier that is not actually needed at all.