EDIT: Solved this, solution in 👉 🧵
I'm integrating a
TextField
and
DropDownMenu
to make a fairly standard drop-down selection for a form.
For this I want to suppress the standard text-editing interaction with the
TextField
and just respond to clicks by opening the menu. Found this becomes a bit of a catch 22 though:
• Keeping the
TextField
enabled, and trying to apply an overriding
clickable
modifier to it, or its parent, does
not stop the TextField from capturing user interaction and behaving normally, as hoped.
•
Disabling the TextField and applying
clickable
to its parent gives desired behaviour, but then of course the colours look disabled too, which I don't want. So I'm trying to apply new
TextFieldColors
to it, that maintain the enabled appearance. However I'm not finding this straightforward either - trying to reference the existing default colors gets you tangled up in interaction sources and stuff which does not feel necessary to be doing.
Any 3rd way I'm missing?