1

I have the following jsbin. Editing a user allows to change several things:

enter image description here

But clicking on the active checkbox has no effect. The name is properly updated, though.

This is the relevant part of the template:

    <div class="control-group">
        <label class="control-label" for="name-id">Name</label>
        <div class="controls">
            {{view Ember.TextField valueBinding="name" id="name-id" required="true"}}
            <i class="help-block">User's name</i>
        </div>
    </div>

    <div class="control-group">
      <label class="control-label" for="active-id">Active</label>
      <div class="controls">
        {{view Ember.Checkbox valueBinding="active"}}
        <i class="help-block">Is this user active?</i>
      </div>
    </div>

What is the problem with the checkbox? Why is it not being updated in the backend (FIXTURES in this case)?

1 Answer 1

2

it should be checkedBinding

{{view Ember.Checkbox checkedBinding="active"}}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.