N°7402 - Fix JS error when trying to add two or more items on an indirect linkset when updating the source object

This commit is contained in:
Molkobain
2024-04-02 10:22:44 +02:00
parent fee07960ca
commit e6162fe958

View File

@@ -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(),
});