Cannot read property 'querySelector' of null
Application Type

Hi, I'm New To This Platform 

I'm facing an issue while showing a web block using icon onclick  in Accordion Title.

I'm using a web block that contains LIST.

Inside List, I added an Accordion. 

In Accordion Title , I'm Having an icon, an onclick event, I'm changing some conditions to show another web block. 

Web Block is shown, but the error: "Cannot read property 'querySelector' of null" also occurs while clicking icon. 


Hi Yogesh,

The querySelector() method returns the first element that matches a specified CSS selector(s) in the document. 

like - document.querySelector(".example"); 

are you using any js ? provide your oml so can find problem and provide solution.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.