naomap / leaflet-fusesearch

A plugin for Leaflet to search features in a GeoJSON layer using Fuse.js
MIT License
94 stars 33 forks source link

IE seems not to support NodeList.remove() #18

Open vtslab opened 7 years ago

vtslab commented 7 years ago

src/leaflet.fusesearch.js Line 252 listItems[i].remove(); gives an error on my IE11 .remove() not supported So I changed to get the parent of the node to delete and then delete the child. This works on IE11

listItems[i].parentNode.removeChild(listItems[i]);