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

              mudrd8mz David Mudrák (@mudrd8mz)
              mudrd8mz David Mudrák (@mudrd8mz)
              Luca Bösch Luca Bösch
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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