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

Form autocomplete - duplicate form-autocomplete-selection DIV node

    XMLWordPrintable

    Details

      Description

      Steps to reproduce

      1. Go to a place where an autocomplete form element is used such as the the course Participants page
      2. Make a selection
      3. Observe the HTML of the selected item

      Expected result:

      The DIV generated by the lib/templates/form_autocomplete_selection.mustache should be used.

      Actual behaviour:

      The DIV is generated and its content is replaced with itself, effectively leading to having two duplicate DIVs with the same attributes. For example:

      <div class="form-autocomplete-selection w-100 form-autocomplete-multiple" id="form_autocomplete_selection-1575446610531" role="list" aria-atomic="true" tabindex="0" aria-multiselectable="true">
      <div class="form-autocomplete-selection w-100 form-autocomplete-multiple" id="form_autocomplete_selection-1575446610531" role="list" aria-atomic="true" tabindex="0" aria-multiselectable="true">
          <span class="accesshide">Selected items:</span>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Luca Bösch
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 15 minutes
                  4h 15m