sl-ember-components icon indicating copy to clipboard operation
sl-ember-components copied to clipboard

not possible to set value on sl-select after render

Open SpikedKira opened this issue 8 years ago • 2 comments

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

SpikedKira avatar Apr 15 '16 19:04 SpikedKira

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

notmessenger avatar Apr 15 '16 20:04 notmessenger

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.

SpikedKira avatar Apr 17 '16 02:04 SpikedKira