lundi 15 février 2016

Ember checkbox loses binding after few clicks

I have a checkbox view in ember, set up like so:

{{input class='switch-input' checked=view.value id=view.identifier type="checkbox"}}

However when I use it like this:

{{view 'checkbox' identifier="advanced-mode-checkbox" value=App.stages.advanced}}

it only works for the first three clicks before losing it's binding. After that additional clicks don't change the value of App.stages.advanced. Which seems very odd, that it would work a few times only.




Aucun commentaire:

Enregistrer un commentaire