question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug when moving right handle

See original GitHub issue

Hi,

I’m using ng2-nouislider version 1.7.4, and nouislider version 10.0.0. and I experience a strange bug when using the slider with 2 handles and databound values.

The bug can be seen here: https://imgur.com/GpUL2vr

Here is the code I use:

<nouislider [connect]="true" 
                #sliderRef
                [(ngModel)]="SelectedRange"
                [behaviour]="drag"
                [min]="SliderMinValue"
                [max]="SliderMaxValue"
                style="margin:20px 30%"
                [config]="SliderConfig"
                [step]="60000"></nouislider>


 public SliderMinValue: number;
 public SliderMaxValue: number;
 public SelectedRange: number[];

public SliderConfig = {
        pips: {
            mode: 'count',
            density: 2,
            values: 5,
            stepped: true,
            format: new TickDateFormatter()
        }
    };

I tried downgrading nouislider to version 9.2.0 and this worked, but I need a functionnality introduuced in version 10 (pips labels refreshing when changing options) so it is not an option for me.

What is wrong ? I don’t experience that behaviour on the demo website…

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
alkorschuncommented, Mar 8, 2018

I think it was something like this: npm install nouislider@9.2.0

1reaction
alkorschuncommented, Jan 16, 2018

I have exactly the same problem, but with my left handle. Very strange

Read more comments on GitHub >

github_iconTop Results From Across the Web

Try First: Easy FIX for Stuck Front Door Handle - YouTube
The thumb latch / handle on my front door became very hard to press down. Check out how easy it is to repair...
Read more >
My right joystick is slightly moving up - Xbox One ... - iFixit
On mine, the right stick drifts when I steer the left stick, or when I push R3 (right hand side stick down at...
Read more >
Why are all these bugs appearing on the side or inside of my ...
Three true bugs (Hemiptera) common on the exterior of structures: brown marmorated stink bug (top left), boxexlder bug (bottom left) and western ...
Read more >
The 16 Most Disgusting House Bugs and How To Get Rid of ...
Fruit Flies Crickets Beetles Millipedes Mosquitoes Centipedes Fleas Spiders Flies Termites Gnats Bed Bugs
Read more >
[MCPE-156103] The right button on mobile is broken I can't ...
The right button on mobile is broken I can't move to the right when I press the right button it punches instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found