FIX: forces boolean when content is only "true" && "false"

This commit is contained in:
Joffrey JAFFEUX
2018-05-24 23:41:39 +02:00
committed by GitHub
parent 30fbf6fe81
commit 1be76d066c
6 changed files with 45 additions and 4 deletions

View File

@ -62,6 +62,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
horizontalOffset: 0,
fullWidthOnMobile: false,
castInteger: false,
castBoolean: false,
allowAny: false,
allowInitialValueMutation: false,
content: null,
@ -169,7 +170,7 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
}
let computedContentItem = {
value: this._castInteger(this.valueForContentItem(contentItem)),
value: this._cast(this.valueForContentItem(contentItem)),
name: name || this._nameForContent(contentItem),
locked: false,
created: options.created || false,