For our customer we upgraded Shopware to version 5.7.2.
After the upgrade to the latest version infinite scroll is not working anymore when we have a own widget in our template. All widgets we have created are not working anymore when using infinite scroll.
The first page is loaded perfect but when we scroll down, the system hangs on the js error:
Uncaught TypeError: Cannot read property ‚trim‘ of undefined.
1629951430_3be3945772966d351e47896c86d3ae64.js:665 Uncaught TypeError: Cannot read property ‚trim‘ of undefined
at Plugin.appendListing (1629951430_3be3945772966d351e47896c86d3ae64.js:665)
at Plugin.i (1629951430_3be3945772966d351e47896c86d3ae64.js:5)
at Object.success (1629951430_3be3945772966d351e47896c86d3ae64.js:573)
at c (1629951430_3be3945772966d351e47896c86d3ae64.js:5)
at Object.fireWith [as resolveWith] (1629951430_3be3945772966d351e47896c86d3ae64.js:5)
at l (1629951430_3be3945772966d351e47896c86d3ae64.js:5)
at XMLHttpRequest. (1629951430_3be3945772966d351e47896c86d3ae64.js:5)
I removed all custum build pug-ins and switched to the responsive theme but the issue still ocures.
Any idea what can couse this problem. When wesSwitch off infinite scroll everything is working again.