Closed gjvoosten closed 8 months ago
Actually this issue isn't completely solved in v3.10.1; there is a difference between how validateCoords()
is called while typing and after pressing Enter. While typing, it is called with the string that was typed in, and after pressing Enter, it is called with an object { query: this.searchElement.input.value, data: item }
(see https://github.com/smeijer/leaflet-geosearch/blob/develop/src/SearchControl.ts#L332-L336 ).
I will raise a new issue. [edit: #384]
After upgrading to the latest version 3.10.0, I am getting the following error:![Screenshot from 2023-10-11 13-25-57](https://github.com/smeijer/leaflet-geosearch/assets/445238/ab4d2a82-c177-491d-907d-9bdeda65d043)
The reason for the exception appears to be that
validateCoords(query)
is called with anundefined
query, so this change would fix it: