mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 11:32:11 +08:00
FIX: castInteger on initial value
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user