From e6162fe95857b84d27166cf19ff6240aff97a3d9 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 2 Apr 2024 10:22:44 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B07402=20-=20Fix=20JS=20error=20when=20try?= =?UTF-8?q?ing=20to=20add=20two=20or=20more=20items=20on=20an=20indirect?= =?UTF-8?q?=20linkset=20when=20updating=20the=20source=20object?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/search/search_form_handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/search/search_form_handler.js b/js/search/search_form_handler.js index a0c6daeec..21165c1cf 100644 --- a/js/search/search_form_handler.js +++ b/js/search/search_form_handler.js @@ -1314,7 +1314,7 @@ $(function() if(this._isElementSticking(oFormPanelBodyElem)) { const oFormPanelElem = this._getFormPanelElem(); oFormPanelBodyElem.css({ - 'top': $(this.options.viewport_elem).offset().top, + 'top': $(this.options.viewport_elem).offset()?.top, // N°7402 - In case viewport is the document, offset() will return undefined 'left': oFormPanelElem.offset().left, 'width': oFormPanelElem.outerWidth(), });