Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Canjs 1.1.6 mustache #each doesn't update UI on unshift when list is 0

$
0
0
There seems to be a bug where if page loads with list.length =0 and an item is added to the list using unshift, the UI doesn't update but if the page loads with items in the list, then subsequent unshift updates the UI. I replaced {{#each list}} ..{{/each}} with {{#list}}..{{/list}} and it works just fine. 

Viewing all articles
Browse latest Browse all 3491

Trending Articles