Skip to content

ember-cli-chosen doesn't work well with promises #25

@eliotpiering

Description

@eliotpiering

If you are passing a promiseArray to the #each helper to generate options, the ember-chosen component will initiate before any promises resolve and the chosen dropdown will be empty. I made a quick and dirty fix that allows passing the promiseArray into the component and waits for it to resolve before initializing. This seems like a poor solution but does work. Is this something that should be supported? Maybe any promises we need should be resolved in the route before passing it into the template. However it would be a useful feature to support. With hasMany async relationships this is a common situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions