-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the emberjs each template does not properly create a Chosen dropdown #14
Comments
Sorry for the delay in responding, it's been a busy week for me. In your scenario, is Currently, this component has no way to dynamically update when its content changes, so it must be there when initially rendered. This is something that needs to be fixed, I am just toying around with the best way to go about doing that. |
No worries on the response time! Totally understand.
Thank you for you work on this project! |
Nope, nothing you're doing. I am going to leave this issue open for tracking, since this does need to be addressed at some point. |
Just running into the same issue. Any update from your side @green-arrow? But looking into it myself as well now. |
Found a quick workaround: {{#if compareOptions}}
{{#ember-chosen selectionDidChange="onSelectionChanged"}}
{{#each compareOptions as |option|}}
<option value='{{option}}'>{{option}}</option>
{{/each}}
{{/ember-chosen}}
{{/if}} |
@Globegitter Thanks for sharing your workaround. |
Just a heads up that I'm finding that wrapping ember-chosen component in conditional doesn't work for a computed property that returns a promise object. |
I am attempting to use the ember-cli to create a select list that is generated dynamically based on a list of items. The list is populated (the
<select><options...></select>
are correctly in place), but the actual view does not display items in the dropdown.Here is an example of my use:
The text was updated successfully, but these errors were encountered: