From 86b8f6b23848ae5b73e24b77b54440f17fb005ab Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 22 Nov 2017 13:40:22 +0100 Subject: [PATCH] FIX: cast integer on truthy value and not only true allows castInteger="true" to work --- app/assets/javascripts/select-kit/mixins/utils.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/mixins/utils.js.es6 b/app/assets/javascripts/select-kit/mixins/utils.js.es6 index b3ca2dbfedf..54f404b3b9e 100644 --- a/app/assets/javascripts/select-kit/mixins/utils.js.es6 +++ b/app/assets/javascripts/select-kit/mixins/utils.js.es6 @@ -28,7 +28,7 @@ export default Ember.Mixin.create({ }, _castInteger(value) { - if (this.get("castInteger") === true && Ember.isPresent(value) && this._isNumeric(value)) { + if (this.get("castInteger") && Ember.isPresent(value) && this._isNumeric(value)) { return parseInt(value, 10); }