Git Product home page Git Product logo

Comments (7)

kennethkalmer avatar kennethkalmer commented on May 30, 2024

Oh snap, I'll have to dig into this and see. Thanks for reporting!

I'll get this out as part of the 1.0 release, which I'm planning to do the 28th of April.

from ember-cli-nouislider.

stephankaag avatar stephankaag commented on May 30, 2024

How you plan to solve it? It's not trivial imho.

from ember-cli-nouislider.

kennethkalmer avatar kennethkalmer commented on May 30, 2024

I have absolutely know idea, yet. I've set aside some time on the weekend to dive into this.

from ember-cli-nouislider.

kennethkalmer avatar kennethkalmer commented on May 30, 2024

I can't seem to reproduce this on master. Just running the local ember server and playing around on the events page I only see the on-set action being dispatched at the right time. I also added some debug statements to the setValue function in the component and I only ever see it being called when the component is setup.

Can you help me reproduce this issue?

from ember-cli-nouislider.

stephankaag avatar stephankaag commented on May 30, 2024

It might have something to do with my setup. I will investigate on my side and open a new issue if i have something reproducible.

from ember-cli-nouislider.

stephankaag avatar stephankaag commented on May 30, 2024

Ok. The issue is this:

  • I have a model with an attribute 'amount' that is represented by a slider.
  • When the slider is being moved, I want the amount attribute to be updated.

My template:

{{range-slider start=model.amount on-slide=(action "setValue")}}

The setValue function looks like this:

    setValue: function(value) {
      this.model.set('amount', value);
    },

This way the model's amount is bound to the slider. However, this causes the problem that Ember decides to rerender the component while dragging because the property model.amount changes.

Is there a better achieve my goal?

from ember-cli-nouislider.

kennethkalmer avatar kennethkalmer commented on May 30, 2024

from ember-cli-nouislider.

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.