I think that I have found a strange bug in the caphList component and wanted to report and get help. The following error is thrown when:
caph-jquery.min.js:19 Uncaught (in promise) TypeError: Cannot read property ‘innerHTML’ of null at e (caph-jquery.min.js:19) at new j (caph-jquery.min.js:19) at HTMLDivElement. (caph-jquery.min.js:19) at Function.each (jquery.min.js:2) at n.fn.init.each (jquery.min.js:2) at n.fn.init.c.fn.caphList (caph-jquery.min.js:19) at prepareContentRows (ls_api_calls.js:498) at ls_api_calls.js:265
The caphList simply works when navigating to the screen if the Internet connection is available.
Did you encounter the same issue and what do you suggest to fix it?
The code to generate the caphList is given below. It works fine when the Internet connection is available and there’s no change in the its status.
$("#new-content-list-container").caphList({
items: structuredContent[0].items,
template: “new-content-item-template”,
direction: “vertical”
}).on(“selected”, function($event) {
...
...
...
});
Thank you.