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

Form autocomplete - duplicate form-autocomplete-selection DIV node

XMLWordPrintable

      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>
      

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Luca Bösch Luca Bösch
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.