Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61400

JS console error using Tags autocomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: Forms Library, JavaScript, Tags
    • Labels:
      None
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      I've found this issue while testing MDL-61133 (questions tags)

      I added a question without tags as a teacher and later pressed the 'tag' button to add tags to it; the suggestions box is empty and I think that may be the key to reproduce this issue; I just need to press the 'up' or 'down' key twice and the JS error below is triggered:

      Uncaught TypeError: Cannot read property 'top' of undefined
          at activateItem (first.js:7783)
          at activateNextItem (first.js:7807)
          at HTMLInputElement.<anonymous> (first.js:8140)
          at HTMLInputElement.dispatch (jquery-3.2.1.min.js:3)
          at HTMLInputElement.q.handle (jquery-3.2.1.min.js:3)
      activateItem @ first.js:7783
      activateNextItem @ first.js:7807
      (anonymous) @ first.js:8140
      dispatch @ jquery-3.2.1.min.js:3
      q.handle @ jquery-3.2.1.min.js:3
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmonllao David Monllaó
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Jake Dallimore, Jun Pataleta, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: