Open PistolPete13 opened 9 years ago
how it can be correct can you find any answer اجاره خودروhttps://ejarehkhodro.com کرایه ماشین در تهرانhttps://021rent.com
@PistolPete13 Did you ever figure out the solution here? I'm having the same issue.
I figured out that the data I was using for source
had a value null
in it – and Typeahead definitely doesn't like that! My array looked like:
["Carrie","Michael",null]
Admittedly I am just messing this up somewhere, but when I use:
On:
<input id="tags" type="text" name="Product[tags]" value="<?php echo implode(",", json_decode($tags)); ?>" class="form-control">
I get the error:
While it shows the typeahead dropdown perfectly, it doesn't add it to my input value on click, but does add it to the tagsinput field (So I can see it, but the value isn't updating).
PS: The json parse I use cause I echo the data from an PHP array, I saw it on a stackoverflow post...