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

Search starts without input #20

Open greyeagle opened 7 years ago

greyeagle commented 7 years ago

Hello, first of all thank you for the great work. I am searching a large geoJSON for 4 parameters and everything is quite fast. The only disadvantage is that the search starts even with an empty search box. That gives some unexpected results. If I add a line in leaflet-fusesearch in searchFeatures to check for the input string length it works fine. However I suspect that is not what should be needed for the example at http://dev.cartocite.fr/CultureNantes/ works perfectly fine. What am I doing wrong?

Best

Lars