Skip to content
Snippets Groups Projects
Verified Commit d0c9e278 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3511186 by grimreaper: Media Library currentSelection not reset properly

(cherry picked from commit 19f88bd3)
parent 04726586
No related branches found
No related tags found
2 merge requests!12227Issue #3181946 by jonmcl, mglaman,!12079Issue #3523476 by matthiasm11: Add empty check on operator
Pipeline #489134 passed with warnings
Pipeline: drupal

#489154

    Pipeline: drupal

    #489144

      Pipeline: drupal

      #489136

        ......@@ -410,7 +410,9 @@
        return;
        }
        window.addEventListener('dialog:afterclose', () => {
        Drupal.MediaLibrary.currentSelection = [];
        // This empty the array while keeping the existing array reference,
        // to keep event listeners working.
        Drupal.MediaLibrary.currentSelection.length = 0;
        });
        },
        };
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment