[FIX] assign a value when an array of numbers is given

This commit is contained in:
Joffrey JAFFEUX 2017-10-25 08:55:16 -07:00 committed by GitHub
parent efbd923f60
commit 1612818e2b

View File

@ -120,6 +120,7 @@ export default Ember.Component.extend(UtilsMixin, DomHelpersMixin, KeyboardMixin
valueForContent(content) {
switch (typeof content) {
case "string":
case "number":
return this._castInteger(content);
default:
return this._castInteger(get(content, this.get("valueAttribute")));