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

Strange live-binding behavior with input elements

$
0
0
When using a template of the form
  1. <input type="text" <% if (obj.attr("val")) { %> value="<%=obj.attr("val")%>" <%}%>>
or the equivalent in Stache:
  1. <input type="text" {{#obj.val}} value="{{obj.val}}"{{/obj.val}}>
the placeholder "__!!__" is inserted in place of the new value whenever the input is changed. This occurs when using either Stache or EJS.

Is this a design flaw or a bug with CanJS's live binding?

Edit: created an issue here.

Viewing all articles
Browse latest Browse all 3491

Trending Articles