Skip to content
Snippets Groups Projects
Verified Commit 5d36123b 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 c0199541
No related branches found
No related tags found
1 merge request!122353526426-warning-for-missing
Pipeline #489552 passed
Pipeline: drupal

#489554

    ......@@ -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