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

Error in wicket-autocomplete.js bad reference of $

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.14.0
    • Fix Version/s: 7.0.0-M1, 6.15.0
    • Component/s: wicket-extensions
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: