Skip to content
Snippets Groups Projects
Verified Commit 3ff0b26d 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 13a9b0da
No related branches found
No related tags found
1 merge request!12537Add ViewsConfigUpdater deprecation support for default_argument_skip_url
Pipeline #489809 passed with warnings
Pipeline: drupal

#489856

    Pipeline: drupal

    #489849

      Pipeline: drupal

      #489846

        +7
        ...@@ -410,7 +410,9 @@ ...@@ -410,7 +410,9 @@
        return; return;
        } }
        window.addEventListener('dialog:afterclose', () => { 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