I understand that the text field and the dropdown menu
can't both be selected at the same time. That's my
dilemma. So what can I do?
Scott Reynen wrote:
What about just changing the background color of the
input?
Niels Meersschaert wrote:
Instead of using the text selected, you might
consider using a css change to
provide some highlighting of the text.
Changing the background color has been my workaround,
but it just seemed a bit cheesy. The issue is what
color to use. On my mac, the default selection color
is light blue, but I can't assume it will be the same
for every user. Grey is the default color on my PC.
In the end, I want the text to be selected in the
normal sense, so that the text can be replaced as soon
as the user starts typing. After an option has been
selected, I reset the background color to white, bring
focus to the textfield and select it for further
editing. This works the way I want if the background
color matches selection color, but is a bit jarring if
they don't match. Any suggestions?