bootstrap-touchspin
bootstrap-touchspin copied to clipboard
Decimal places are not included when using plus and mins buttons
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

Demo: https://jsfiddle.net/Misiu/3k61s8kp/
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: