bootstrap-touchspin icon indicating copy to clipboard operation
bootstrap-touchspin copied to clipboard

Decimal places are not included when using plus and mins buttons

Open Misiu opened this issue 7 years ago • 1 comments

I have this config:

  $("#demo0").TouchSpin({
    min: 1200.22,
    max: null,
    step: 100,
    decimals: 2,
    boostat: 5,
    maxboostedstep: 10,
    postfix: '$',
    forcestepdivisibility: 'none'
  });

initial value is set to 1200.22, step to 100, so after clicking + value should change to 1300.22, but it is updated to 1300.00

touchspin_bug2

Demo: https://jsfiddle.net/Misiu/3k61s8kp/

Misiu avatar May 24 '18 10:05 Misiu

I tried one of the older versions to test and found that at least v3.1.1 doesn't have this problem something in the later commits broke this. Try with all releases in between v3.1.1 and your (v4.2.5) to see which is the first to break this feature. Then you can look at the commits in between to try and figure out a fix. Probably offer a PR to help other users :smiley:

fr0z3nfyr avatar Dec 07 '18 11:12 fr0z3nfyr