Skip to content

Commit cbfc43d

Browse files
committed
Add a new common issue
1 parent 7cc6caa commit cbfc43d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ vm.refreshSlider = function () {
5555

5656
**UI-Boostrap tabs example**: http://jsfiddle.net/0f7sd7dw/
5757

58+
### Decimal value can't be typed in an input field linked to the slider
59+
By default, the slider value is always rounded to the nearest step. A side effect is that when a input field is linked to the slider in order to enable a user to directly type a value, the value is rounded when it doesn't match the step. Even worse, when using decimal values, when a user will type "0.", the `.` will directly be truncated since the value is rounded.
60+
61+
**Solution**: To avoid the value to be rounded, you need to use the `enforceStep: false` option. Thus, the value can be modified externally without taking care of the step. See [#298](https://github.com/angular-slider/angularjs-slider/issues/298).
62+
5863

5964
## Installation
6065

0 commit comments

Comments
 (0)