jQuery UI Widgets Forums Dialogs and Notifications Window jqxWindow Problem with Close Event

This topic contains 2 replies, has 2 voices, and was last updated by  madmark 11 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • jqxWindow Problem with Close Event #103928

    madmark
    Participant

    Hello,

    I’m having a problem with the jqxWindow close event. It’s always triggered when an input lose focus or a selection from the dropdown is made. Here’s a fiddle demo. Thanks.

    • This topic was modified 11 months, 2 weeks ago by  madmark.
    • This topic was modified 11 months, 2 weeks ago by  madmark.
    jqxWindow Problem with Close Event #103938

    Peter Stoev
    Keymaster

    Hi madmark,

    That’s because this is not the “close” event of the window. This is the “close” event which bubbles from the widgets inside the window. Events have target. If the event.target is the jqxWindow, then this means that the event is raised by jqxWindow, otherwise it is not.

    Example:

    $('#jqxwindow').on('close', function (event) {
    if (event.target === $("#jqxwindow")[0])
        alert("You closed a window");
    });

    Hope this helps.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com

    jqxWindow Problem with Close Event #103941

    madmark
    Participant

    Hi Peter,

    Yes, this really helps. Thank you for your prompt response.
    I’m just wondering why this is happening because in versions 5.4.0 and below, it’s not.

    Regards,
    madmark

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

You must be logged in to reply to this topic.