Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vue Slider Component - Enable drag-end and on-click updates concurently

I'm using vue-slider-component in my project. By default, it is clickable i.e. it applies update (calls desired method) on click event. But it also continuously applies updates while dragging, from start to end point. What I wanted is to apply update only once when slider stops at end point. So I added @drag-end attribute. Now the problem is that I can click on slider, and it animates (slides) but no updates are applied, due to @drag-end attribute. How can I remain @drag-end feature but concurently enable update apply on click?

like image 488
efluent Avatar asked Nov 29 '25 01:11

efluent


1 Answers

I think setting the lazy attribute to true might fix this.

v-on:change="updateApcs()" :lazy="true"
like image 166
Job Gathu Avatar answered Dec 02 '25 03:12

Job Gathu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!