Answer the question
In order to leave comments, you need to log in
Slider plugin for Vue throws an error, how can I fix it?
I use this slider plugin https://www.npmjs.com/package/vue-slider-component
<v-slider
@drag-end="setPriceFilter"
v-model="rangeSum"
:enable-cross="false"
:min="allRcMinPrice"
:max="allRcMaxPrice"
:interval="100000"
></v-slider>
rangeSum: {
get() {
let rangeSum = [this.minSum, this.maxSum];
return rangeSum;
},
set(value) {
this.minSum = value[0];
this.maxSum = value[1];
}
},
if(this.minSum < this.newMinPrice){ // этим условием пытался исправить эту ошибку
this.minSum = this.newMinPrice //устанавливаю min value
this.setNewAllMinPrice(this.newMinPrice) // устанавливаю min границу( через Vuex)
}
else{
this.minSum = this.newMinPrice
this.setNewAllMinPrice(this.newMinPrice)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question