80
Views
1
Comments
Solved
Cannot read properties of null (reading 'src')
Application Type
Reactive

I'm getting the following error:

"Cannot read properties of null (reading 'src')"


it comes when I try to load the map on the screen with a container visible property. I'm appending the markers on the data action's on after fetch  and I want to visible the map when the marker list has the data.

inside the map container the visible property is: Not markerlist.empty

and whenever the screens loads the following error comes and map is still hidden, but when I refresh the tab, error goes and I can see the map.

can someone please let me know how can I improve this?


2021-09-06 15-09-53
Dorine Boudry
 
MVP
Solution

Try using conditional style of display:none instead of using the visible property.

Or else : if you share an oml, someone will take a look for sure.

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