Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5552

Events to close pop-up on Modal Window are not propagated

    XMLWordPrintableJSON

Details

    Description

      When using a field on a modal window that shows a pop-up window, like a time picker, when clicking outside of the pop-up window but over the modal window, mousedown/click events are not propagated. Clicks outside of the modal window are propagated.

      This is due to Wicket.Event.stop(event) being called on mousedown on the w_content_1 component. Removal of this leads to the Drag javascript being executed which itself calls Wicket.Event.stop(event), disabling this then propagates the event which leads to the pop-up window being closed but causes any field on the modalwindow to get focus.

      I have a quickstart that demonstrates the modalwindow behavior vs that on a page. You will see that launching the modal window and clicking on the time component opens the pop-up window. However, you can only get this to close when clicking outside of the modal window. The same component has been put on the main page as a comparison which does close when clicking outside of the pop-up window.

      Attachments

        1. quickstart.zip
          147 kB
          Neil Bennett

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              neilbennett Neil Bennett
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: