* Filemanager: fix after opening and closing the gallery in filemanager the list is no longer accessible

This commit is contained in:
hadi 2023-04-06 14:56:39 +02:00
parent e419287cfb
commit a09c0bad38

View File

@ -921,6 +921,12 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
{
// Check to see if we're in a nextmatch, remove magic
let nm = this.find_nextmatch(this);
// redefine essential removeClass method in case the active element has no longer contains it.
if (!this._gallery.activeIndicator.removeClass)
{
this._gallery.activeIndicator.removeClass = blueimp.helper.prototype.removeClass;
}
if(nm && !this._is_target_indepth(nm))
{
// Remove scrolling from thumbnails