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

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

parent fe62a3e9
Branches
Tags
3 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #489383 passed
Pipeline: drupal

#489384

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