the user to be able to see the full list of value when autocomplete value is empty
the user to be able to see the fitlered list when focus out of the input and come back
Curently the main issue is that the autocomplete doesn’t show a list when you click on it.
I’ve try to use dmx-on:click on the div but it doesn’t work I need to use a parent. And I can’t find a method on the autocomplete to show the list (there is “only” focus, validate, setValue, and disabled).
Autocomplete, as I’m sure you’re finding, isn’t currently designed to do this but I think it would be possible. The simplest method I often use is a help text to say ‘type space to see full list’ (follow step 1 below)
The following process should work, in principal, but there is an issue. Setting the value of the text box (dummy that you type into) cannot seemingly be done it sets the value of the hidden field that has the resulting value. @patrick can we get access to the typed field on autocomplete?
You need to make sure that values have a space in them. I have lists of names where I know there is a space between first name and surname but other times where single words are possible. If single words can be present, add a space to the end of the text binding for the autocomplete.
e.g.
optiontext="listtext+' '"
Use the dynamic on focus event to set the value to ’ ’
dmx-on:focus="text1.setValue(' ')"
Then on update use an inline flow so that the string is left trimmed if the value != ’ ’