ION Range Slider triggering multiple times If axios is used

20 views Asked by At

When Axios is used in the OnFinish method, It is triggered multiple times. If I don't use Axios, there seems to be no problem. You can check the sample code below.

When Axios is not used.

   $("#input-range-sound-output").ionRangeSlider({
            onFinish: function (data) {
                console.log(data);
            }
        });

enter image description here

When Axios is used

   $("#input-range-sound-output").ionRangeSlider({
        onFinish: function (data) {
            search.getProductsByFilter(); //AXIOS
        }
    });

enter image description here

Is there anyone that faced the problem above or has any ideas about how to solve it?

0

There are 0 answers