mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
[FIX] assign a value when an array of numbers is given
This commit is contained in:
@@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user