In Salesforce to show the map with pointers I created custom LWC and use Leaflet.js library but there is an issue with LWS and Mozilla Firefox.

When LWS is enabled then in Mozilla Firefox browser marker popup is not being shown when I click on marker. In Chrome and Safari all works good but in Firefox it does not.

const marker = L.marker([lat, lon], {
  icon: myIcon,


No errors appear in console when I click on pointer.

Also only in Firefox sometimes I get an error Lightning Web Security: Cannot access rangeParent when I drag/move map, after page refreshing this error might disappear but after another refresh it might appear as well.

enter image description here

When Lightning Locker is enabled then all works good in Firefox and Chrome/Safari it still working good as it was with LWS.

Any ideas why popup is not being shown in Firefox when LWS enabled and I get this error message when drap the map?


You must log in to answer this question.

Browse other questions tagged .