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

@ -63,7 +63,7 @@ export default SelectKitComponent.extend({
switch (typeof value) {
case "string":
case "number":
return this._castInteger(value === "" ? null : value);
return this._cast(value === "" ? null : value);
default:
return value;
}