jQuery UI Widgets Forums Editors ScrollBar, Slider, BulletChart, RangeSelector Slider Change Event Fired Twice

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 4 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Slider Change Event Fired Twice #111562

    scott butler
    Participant

    Hi,

    This seems to be a very old topic but it is still happening for me. When I click the button to the left or right of my slider, I am receiving two events and two position moves.

    jqwidgets – v7.1.0
    jquery – v3.4.1

    Sample Code:
    $(‘#monthLevel’).jqxSlider({ min: 1, max: 10, ticksFrequency: 1, value: 5, step: 1, mode: ‘fixed’, theme: ‘greengray’, width: ‘100%’ });
    $(‘#monthLevel’).on(‘change’, function (event) {
    event.stopPropagation();
    $(‘#lblCurrentMonths’).text(event.args.value);
    //alert(month);
    });

    When I click either button, the current months label increments by two.

    Any help would be greatly appreciated.

    Slider Change Event Fired Twice #111563

    scott butler
    Participant

    By the way, I was not using the event.stopPropagation() call but saw that as a possible solution in an old post. It did not make any difference.

    Slider Change Event Fired Twice #111564

    scott butler
    Participant

    One other item – just upgrade to 9.0.0 for jq widgets and still have the same issue.

    Slider Change Event Fired Twice #111575

    Hristo
    Participant

    Hello scott butler,

    I tested this example and it seems to work fine.
    Could you clarify it?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.