Skip to content

Commit df3da04

Browse files
committed
fix #75
1 parent bd25129 commit df3da04

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

exampleVault/Input Fields/Slider.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
slider1: 22
33
slider2: -4
4+
slider3: 795
45
---
56

67
### Simple Slider
@@ -18,6 +19,6 @@ INPUT[slider(addLabels, showcase):slider1]
1819
INPUT[slider(addLabels, minValue(-20), maxValue(20), showcase):slider2]
1920
```
2021

21-
```js
22-
let a = 5;
22+
```meta-bind
23+
INPUT[slider(addLabels, minValue(0), maxValue(1000), showcase):slider3]
2324
```

src/inputFields/SliderInputField.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export class SliderInputField extends AbstractInputField {
6666
}
6767

6868
const component = new SliderComponent(container);
69+
component.setLimits(this.minValue, this.maxValue, 1);
6970
component.setValue(this.renderChild.getInitialValue());
7071
component.onChange(this.onValueChange);
7172
component.setDynamicTooltip();
72-
component.setLimits(this.minValue, this.maxValue, 1);
7373
component.sliderEl.addClass('meta-bind-plugin-slider-input');
7474

7575
if (labelArgument && labelArgument.value === true) {

0 commit comments

Comments
 (0)