mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:52:50 +08:00
FIX: castInteger on initial value
This commit is contained in:
parent
7f16323ba4
commit
296ea6c7b1
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user