ember-cli-selectize icon indicating copy to clipboard operation
ember-cli-selectize copied to clipboard

Selectize changing my model property to null

Open zion opened this issue 9 years ago • 0 comments

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?

zion avatar Nov 18 '16 21:11 zion