Currently when the model value is unset, "angular-selector" forces it to be an empty object.
But - when the select is not multiple, the type of the model is unknown - it might be a primitive, not an object.
I removed the parts (at least the ones I found) where it forces the object.
Currently when the model value is unset, "angular-selector" forces it to be an empty object. But - when the select is not multiple, the type of the model is unknown - it might be a primitive, not an object. I removed the parts (at least the ones I found) where it forces the object.