Closed kategengler closed 8 years ago
Ember Version: 2.4.3 Ember CLI Version: 2.4.2
When setting value on {{x-select}} to a falsy value (explicitly false in our case), the bound property should remain false.
value
{{x-select}}
false
If set to false, the bound property's value is updated to null. We tracked this down to this line: https://github.com/thefrontside/emberx-select/blob/master/addon/components/x-select.js#L156
null
Tracked down to this line: https://github.com/thefrontside/emberx-select/blob/master/addon/components/x-select.js#L156
Plan to PR a fix but wanted to document this in case we forgot.
Thanks for detailed issue @kategengler! If you don't get to the PR I'll try to fix this today :)
This was closed with https://github.com/thefrontside/emberx-select/commit/440f9662d62524cc8d6a6883b21c29eda8d89128
Thanks!
Version of x-select: 2.1.1
Ember Version / Ember CLI Version:
Ember Version: 2.4.3 Ember CLI Version: 2.4.2
Expected Behavior
When setting
value
on{{x-select}}
to a falsy value (explicitlyfalse
in our case), the bound property should remainfalse
.Actual Behavior
If set to
false
, the bound property's value is updated tonull
. We tracked this down to this line: https://github.com/thefrontside/emberx-select/blob/master/addon/components/x-select.js#L156Steps To Reproduce:
{{x-select}}
pass in value bound to a property that is falsy (false, 0, etc)JSBin / Ember Twiddle / Example repo / Failing test:
Tracked down to this line: https://github.com/thefrontside/emberx-select/blob/master/addon/components/x-select.js#L156