You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when changing the value of the select in the UI, the controller property selectedOption doesn't change.
Here's some code for a failing test:
varexampleObjectContentWithValueAndNull=function(){//have to be in order since mapBy(value) apparently does alphabeticallyreturnEmber.A([Ember.Object.create({value: false,label: 'false'}),Ember.Object.create({value: null,label: 'null'}),Ember.Object.create({value: true,label: 'true'})]);};test('optionValuePath passes selectize the desired value',function(assert){varcomponent=this.subject();Ember.run(function(){component.set('content',exampleObjectContentWithValueAndNull());component.set('optionValuePath','value');});this.render();assert.deepEqual(exampleObjectContentWithValueAndNull().mapBy('value'),asArray(component._selectize.options,'value'));});
The text was updated successfully, but these errors were encountered:
Mostly seems to be an issue when the object behind content either has a null value (which might be appropriate, or if the field hasn't been set by the user yet, so that the property behind value is null. In these cases, trying to transition away from the route gives the error Cannot read property 'attr' of null.
I have an array the I use for content, and need to use the value for sorting another part of the display. This array is:
And my template has the component declared like so:
But when changing the value of the select in the UI, the controller property
selectedOption
doesn't change.Here's some code for a failing test:
The text was updated successfully, but these errors were encountered: