mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +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);
|
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.set("headerText", Handlebars.escapeExpression(this.get("headerText")));
|
||||||
|
|
||||||
this.setProperties({
|
this.setProperties({
|
||||||
|
Reference in New Issue
Block a user