list.js
list.js copied to clipboard
problem use the function with the `item:` option.
I found a problem use the function with the item: option.
I can't update using .values.
For example, here is the code. https://jsfiddle.net/pr38udgc/
I can update by writing HTML in the item: option,
However, in the case of I can not update if I use a function getHtml.
I'm searching for 'Lucy',
but when I write the getHtml for item: option,
result shows 'Ernest Miller-Hemingway'.
In contrast in the case of I use HTML for item: option
result shows 'Lucy Maud Montgomery' correctly.
So the userList object has been updated, but only the HTML doesn't seem to be updated.
I am having the same issue, did you eventually figure this out? I might dig in the source code to fix it otherwise.
The current workaround is to set elm to undefined and then call update() on the list.
https://jsfiddle.net/smvhdaq3/