leaflet.locationlist
leaflet.locationlist copied to clipboard
'changed' event fires when list is not changed
The selection is not changed when clicking in the list. You need to actually select the option. Therefore:
L.DomEvent.addListener(this._fullist, 'click', this._onListChange, this);
should be changed to
L.DomEvent.addListener(this._fullist, 'change', this._onListChange, this);
``