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

Error in wicket-autocomplete.js bad reference of $

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.14.0
    • 7.0.0-M1, 6.15.0
    • wicket-extensions
    • None

    Description

      Since wicket 6.14, autocomplete component throw an error when positionning autocomplete-menu.

      TypeError: $(...).offset is not a function

      In fact, in wicket-autocomplete.js (line 592), getPosition use $(obj) instead of Wicket.$(obj) :

      For apps with other js lib, it's really critique because a JS error freeze other js action.

      Quick fix is to change :
      line 592 of wicket-autocomplete.js
      --> Wicket.$(obj) instead of $(obj)

      Thanks

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            dmalescot Damien M.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: