Cannot read property 'addEventListener' of null

Cannot read property 'addEventListener' of null


Champion

Hi,


Can you elaborate or maybe give the oml here. because we cannot determine the cause just by the information you provided.


Thanks

Champion

Hi Suchanya 

Are you using the JS anywhere in the application with the ADDEVENTLISTNER Function? There is some issue there. Can you share the JS Code Block? 

I had a similar issue with the usage of the buttonloading button from OutSystemsUI. The EventListener error occurs when you have the button element inside the loading button webblock set to visible = false . To Solve this error put the button inside an if and set the condition that is mentioned there instead of the visible property. Keep visible =true.

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