isDirty not triggered by change in Ember.Select


#1

I’m experiencing issues using an Ember.Select view to set an associated record, in this case ‘status’. I’m relying on the model’s isDirty flag to enable and disable a save button; however, it is not updating when the associated record has changed.

Example: http://emberjs.jsbin.com/xireguzave/1/edit?html,js,output

From what I have read, it seems to be the case because the current workaround for using Ember.Select is to set selection=<model>.content, which prevents isDirty from changing.

Does anyone know of a workaround to enable this behavior?


#2

If you’re using belongs to see below: