How can a search glass icon be inserted in a search input field with auto-complete in a way that it is hidden when input is typed so the “blue cross” is showing only?
I tried several ways, among which hiding the icon when the value of the input field’s length > 0, but that doesn’t work because the value is not updated directly when typing. How can the above be achieved?
However both ways it doesn’t work, probably because the search input is not updated until a autocomplete result is clicked and there’s no way to hide it on focus of the input field.
Thanks for thinking along again, but unfortunately this is not the case:
If this updated dynamic event was triggered when typing in the input field, then it would be possible to hide the icon as a dynamic event even without the use of a value. But since this event is not fired on typing in the input field, I tried finding a solution using the input value length which apparently also doesn't work.