jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput OnChange fires multiple times

This topic contains 4 replies, has 2 voices, and was last updated by  dpdragnev 12 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • OnChange fires multiple times #20092

    dpdragnev
    Member

    Hi,

    I have a DateTimeInput on the page and I am handling the ‘change’ event as such:

    $(‘#dtDate’).on(‘change’, function (event) {
    populateCurrentScheduleEmp();
    });

    populateCurrentScheduleEmp is a function that uses ajax call to retrieve information from the server and populate some other elements on the page.

    Everything works as expected, however, when I inspected the request I noticed that the ‘change’ event fires 4 times. I should also mention that the populateCurrentScheduleEmp calls $(‘#dtDate’).jqxDateTimeInput(‘getDate’) to retrieve the currently selected date.

    What could be causing the change event to fire multiple times?

    Thank you.

    Daniel

    OnChange fires multiple times #20094

    Peter Stoev
    Keymaster

    Hi Daniel,

    Please, provide a sample which reproduces that with jQWidgets 2.8.1

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    OnChange fires multiple times #20099

    Peter Stoev
    Keymaster

    Hi Daniel,

    I tested the behavior and was able to reproduce it locally by modifying our events sample. We will fix that as soon as possible.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    OnChange fires multiple times #20427

    dpdragnev
    Member

    Thank you Peter. Was that addressed in the new version 2.8.2?

    OnChange fires multiple times #20428

    dpdragnev
    Member

    Please ignore my last post, I just saw that you have fixed that.

    Thank you.

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

You must be logged in to reply to this topic.