From 7f4afa9d36bdbd6ad8d6298541f6125e867bbceb Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Wed, 21 Sep 2016 15:24:23 +0200 Subject: [PATCH] rename sliderOptions to noUiSliderOptions to follow schema logic --- src/fields/fieldNoUiSlider.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fields/fieldNoUiSlider.vue b/src/fields/fieldNoUiSlider.vue index 7989c62c..9800574a 100644 --- a/src/fields/fieldNoUiSlider.vue +++ b/src/fields/fieldNoUiSlider.vue @@ -38,8 +38,8 @@ ready() { if (window.noUiSlider) { this.slider = this.$el; - window.noUiSlider.create(this.slider, defaults(this.schema.sliderOptions || {}, { - start: this.value != null ? this.value : this.schema.min, + window.noUiSlider.create(this.slider, defaults(this.schema.noUiSliderOptions || {}, { + start: this.getStartValue(), range: { "min": this.schema.min, "max": this.schema.max