Ember Select to update the onChange model

I have an Ember HBS template form with input and select fields. The input fields take the value argument specified for model.someField. When the user changes the input value, the model also changes and then shows that the attributes change.

I want to do the same with select, but when I change the value of select, the model.someField will not update automatically. What's the correct way to do this?

I am using Ember 2.9.

+3


source to share


1 answer


Credit to the kumkanillam for this answer.



Adding onchange = {{action (mut value) value = "target.value"}} to the selected revised automatic model update.

+3


source







All Articles