lusaxweb / vuesax

New Framework Components for Vue.js 2
https://lusaxweb.github.io/vuesax/
MIT License
5.64k stars 741 forks source link

Wrong Minimal Value #971

Open julienperrault opened 3 years ago

julienperrault commented 3 years ago

Informations

Context

When we have a vsSlider in "range" mode with a minimum interval different from 0 (e.g. 5) and a value assigned by the v-model which includes this minimum (e.g. [5;10]) then when the component loads and we click on the slider we see "0" instead of the real minimum value (here 5)

I made a correction on my fork. I set up this ticket to forward the corresponding PR (https://github.com/lusaxweb/vuesax/pull/972)

Reproducing the bug

<template lang="html">
  <div>
    <vs-slider :min=50 :max=200 v-model="value"/>
  </div>
</template>

<script>
export default {
  data(){
    return {
      value:[50, 100]
    }
  }
}
</script>

Screenshots

On Vuesax 3.12.2 a Expected behavior b