FIX: castInteger on initial value

This commit is contained in:
Joffrey JAFFEUX 2017-08-25 22:41:35 +02:00 committed by GitHub
parent 7f16323ba4
commit 296ea6c7b1

View File

@ -104,6 +104,10 @@ export default Ember.Component.extend({
this.set("filterable", false);
}
if (this.get("castInteger")) {
this.set("value", parseInt(this.get("value"), 10));
}
this.set("headerText", Handlebars.escapeExpression(this.get("headerText")));
this.setProperties({