ember-cli-selectize
ember-cli-selectize copied to clipboard
Selectize changing my model property to null
I am using ember-selectize in a component and passing in the items list and the value of the model property to use.
<label>{{label}}
{{ember-selectize
content=goalList
optionValuePath="content.id"
optionLabelPath="content.name"
value=selected_goal
placeholder="Select a goal" }}
</label>
My issue is, when the page loads the model, the component is changing selected_goal to null. The value of the selected_goal property is an id that coincides with content.id from the list of items. I can successfully select a value from the list and it updates the model property just fine, just doesn't start with specified values.
Am I just using this add-on incorrectly?