softlayer / sl-ember-components

An Ember CLI Addon that provides a variety of UI components.
http://softlayer.github.io/sl-ember-components
MIT License
114 stars 27 forks source link

not possible to set value on sl-select after render #1669

Open SpikedKira opened 8 years ago

SpikedKira commented 8 years ago

changing the value from outside of the component will never change the selected item in the select

notmessenger commented 8 years ago

@SpikedKira Is this addressed by https://github.com/softlayer/sl-ember-components/issues/699 or does this encompass something different?

SpikedKira commented 8 years ago

It's different. We use the select2 jquery addon for our sl-select. The problem is that we never talk to select2 after init. So anything bound in using ember that is changed after init will never get updated. Most notably, this effects the value, but ultimately, if you were using select as a field that was dependent on another and wanted to change readonly status, that too would not be possible if I recall.