Skip to content

Instantly share code, notes, and snippets.

@rjfranco
Last active August 29, 2015 14:13
Show Gist options
  • Select an option

  • Save rjfranco/7dbcf80f4c385800d4c3 to your computer and use it in GitHub Desktop.

Select an option

Save rjfranco/7dbcf80f4c385800d4c3 to your computer and use it in GitHub Desktop.
Ember.js Error when updating properties
Uncaught Error: Assertion Failed: An attribute binding was triggered when the element was not in the DOM
ember.js?body=1:3903
Ember.assertember.js?body=1:7393
applyAttributeBindingsember.js?body=1:41697
merge.invokeObserverember.js?body=1:43838
CoreView.extend._wrapAsScheduled.stateCheckedFnember.js?body=1:849
Queue.invokeember.js?body=1:914
Queue.flushember.js?body=1:719
DeferredActionQueues.flushember.js?body=1:144
Backburner.endember.js?body=1:547
(anonymous function)
<li id="activity_start_datetime_input">
<label class=" label" for="activity_start_datetime">Start</label>
<input class="datetime" id="activity_start_datetime" name="start_datetime" type="text" {{bind-attr value="schedule-item.start_datetime"}} />
</li>
<li id="activity_end_datetime_input">
<label class=" label" for="activity_end_datetime">End</label>
<input class="datetime" id="activity_end_datetime" name="end_datetime" type="text" {{bind-attr value="schedule-item.end_datetime"}} />
</li>
return _this.getAttendeeData(idents).then(function(data) {
schedule_item.invitations = _this.processInvitations(schedule_item.invitees, data.attendee_list);
return _this.get('model').setProperties(schedule_item);
});
@rjfranco
Copy link
Copy Markdown
Author

I've got the error down to a input text field that I remove through another library that replaces it with a datepicker. Trying to see if there's a proper ember-rish way to just set the value on this input field and then forget about it instead of actually making it a data binding.

@mrinterweb
Copy link
Copy Markdown

@rjfranco
Copy link
Copy Markdown
Author

Thank you sean <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment