jQuery UI Widgets Forums Lists ListBox Rejecting a DragEnd event Breaks Further Drag and Drop

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 5 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • rim.vilgalys
    Participant

    Hello,

    I’ve encountered a bug with the default drag and drop handler, that looks like a race condition somewhere and the drag start listener is never being reset. It can be duplicated in the example I found elsewhere on this forum:
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxlistbox/dragdrop.htm?arctic

    What happens:
    In our dragEnd handler, we have a simple check of if(!dropItem) return false for when an item is dragged into an empty area and nothing should happen. In the linked example, the ‘Frappucino’ will always return false.

    Sometimes dragging this to where it returns false, the drag-drop behavior breaks completely and drag will start selecting text. I suspect this is a race condition because it sometimes resets correctly. To duplicate this in the example, repeatedly drag the ‘Frappucino’ element outside the list box it’s in and drop it over empty space. Repeating this a few times will eventually break the reset on the drag listener. Dropping an item from the example’s other box will reset the listeners if this happens.


    Hristo
    Participant

    Hello rim.vilgalys,

    Thank you for the feedback.
    I created a work item for this.
    If you think it is suitable for you then you could try to use a workaround.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.