indrimuska / angular-selector

A native AngularJS directive that transform a simple <select> box into a full html select with typeahead.
http://indrimuska.github.io/angular-selector
MIT License
96 stars 36 forks source link

Avoid modifying the model value type #61

Closed liorcode closed 8 years ago

liorcode commented 8 years ago

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.

indrimuska commented 8 years ago

Thank you @liorch88! 👍