GithubHelp home page GithubHelp logo

Comments (7)

green-arrow avatar green-arrow commented on June 26, 2024

Sorry for the delay in responding, it's been a busy week for me.

In your scenario, is model.assignments already populated when you initially render the view, or is that something that is lazily loaded?

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.

from ember-cli-chosen.

jasoncavett avatar jasoncavett commented on June 26, 2024

No worries on the response time! Totally understand.

model.assignments is lazily loaded, so it is hitting the case you are talking about then. I am just getting into Ember, so I wasn't even sure at first if it was something I was doing (I'm still not fully groking the whole thing yet).

Thank you for you work on this project!

from ember-cli-chosen.

green-arrow avatar green-arrow commented on June 26, 2024

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.

from ember-cli-chosen.

Globegitter avatar Globegitter commented on June 26, 2024

Just running into the same issue. Any update from your side @green-arrow? But looking into it myself as well now.

from ember-cli-chosen.

Globegitter avatar Globegitter commented on June 26, 2024

Found a quick workaround:

{{#if compareOptions}}
  {{#ember-chosen selectionDidChange="onSelectionChanged"}}
    {{#each compareOptions as |option|}}
      <option value='{{option}}'>{{option}}</option>
    {{/each}}
  {{/ember-chosen}}
{{/if}}

from ember-cli-chosen.

joelcox avatar joelcox commented on June 26, 2024

@Globegitter Thanks for sharing your workaround.

from ember-cli-chosen.

jaredgalanis avatar jaredgalanis commented on June 26, 2024

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.

from ember-cli-chosen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.