Skip to content

Commit

Permalink
fix: forgot the new method getStartValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Sep 21, 2016
1 parent 7f4afa9 commit 13b74e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/fields/fieldNoUiSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
// Single value
this.value = parseFloat(value);
}
getStartValue(){
if (this.value != null) {
return this.value;
}else{
if (this.schema.noUiSliderOptions.double) {
return [this.schema.min, this.schema.min];
}else{
return this.schema.min;
}
}
}
},
Expand Down

0 comments on commit 13b74e3

Please sign in to comment.