Skip to content

Commit 13b74e3

Browse files
author
Lionel Bijaoui
committed
fix: forgot the new method getStartValue()
1 parent 7f4afa9 commit 13b74e3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/fields/fieldNoUiSlider.vue

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
// Single value
3333
this.value = parseFloat(value);
3434
}
35+
getStartValue(){
36+
if (this.value != null) {
37+
return this.value;
38+
}else{
39+
if (this.schema.noUiSliderOptions.double) {
40+
return [this.schema.min, this.schema.min];
41+
}else{
42+
return this.schema.min;
43+
}
44+
}
3545
}
3646
},
3747

0 commit comments

Comments
 (0)