From 60f30409788a94aee9c0f47628709957c966733d Mon Sep 17 00:00:00 2001 From: hadi Date: Thu, 6 Apr 2023 14:56:39 +0200 Subject: [PATCH] * Filemanager: fix after opening and closing the gallery in filemanager the list is no longer accessible --- api/js/etemplate/Expose/ExposeMixin.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/js/etemplate/Expose/ExposeMixin.ts b/api/js/etemplate/Expose/ExposeMixin.ts index 10fdaf54e3..e191bc5190 100644 --- a/api/js/etemplate/Expose/ExposeMixin.ts +++ b/api/js/etemplate/Expose/ExposeMixin.ts @@ -921,6 +921,12 @@ export function ExposeMixin>(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