I have an autocomplete component where when the user hits tab or enter I set the value of an input element programatically (the value from one of the autocomplete suggestions). For example, if I type “A” and the first autocomplete item is “Apple” I hit enter.
Effectively I am doing document.getElementById(‘myInput’).value = ‘Apple’
And myInput has wire:model set as an attribute.
But when I do this it doesn’t result in the wire:model updating the way it does when I type in the field, i.e. the wire model will still be ‘A’.
Any help would be much appreciated!