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

AutoCompleteTextField: popup is hidden when clicking on scrollbar in IE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.5.0, 7.6.0
    • 7.7.0, 8.0.0-M5
    • wicket-extensions
    • None

    Description

      When the user clicks into the text field, a list with suggestions is opened in a popup. When the user scrolls this list by clicking on the vertical scrollbar, the popup disappears.

      Affects IE11 and Edge, not affected is Chrome.

      this seems similar to WICKET-5882

      I have resolved the issue by replacing lines 91+ in wicket-autcomplete.js with the following code:

      Wicket.Event.add(obj, 'blur', function (jqEvent) {
              var menuId=getMenuId();
      
              //workaround for IE. Clicks on scrollbar trigger
              //'blur' event on input field. (See https://issues.apache.org/jira/browse/WICKET-5882)
              if (menuId !== document.activeElement.id && (menuId + "-container") !== document.activeElement.id) {
                window.setTimeout(hideAutoComplete, 500);
              } else {
                jQuery(this).trigger("focus");
              }
            });
      

      quickstart attached

      Attachments

        1. wicket-autocomplete-ie.tar.gz
          21 kB
          Andreas Kappler

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            aka Andreas Kappler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: