mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:16:08 +08:00
[FIX] assign a value when an array of numbers is given
This commit is contained in:
parent
efbd923f60
commit
1612818e2b
|
@ -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")));
|
||||
|
|
Loading…
Reference in New Issue
Block a user