In the "Example with options" at http://tristen.ca/suggestions/demo/ if you select a value from the list the change event is called twice. (though it seems if you reselect the same value again it is only called once.
If I disable the dispatch of the change event at https://github.com/tristen/suggestions/blob/gh-pages/src/suggestions.js#L151 the event is only triggered once and there doesn't seem to be any side affects.
So what am I missing? Why is the event dispatched? Can we just remove it?
This affects the mapbox-gl-geocoder per mapbox/mapbox-gl-geocoder#99.
In the "Example with options" at http://tristen.ca/suggestions/demo/ if you select a value from the list the
changeevent is called twice. (though it seems if you reselect the same value again it is only called once.If I disable the dispatch of the change event at https://github.com/tristen/suggestions/blob/gh-pages/src/suggestions.js#L151 the event is only triggered once and there doesn't seem to be any side affects.
So what am I missing? Why is the event dispatched? Can we just remove it?
This affects the mapbox-gl-geocoder per mapbox/mapbox-gl-geocoder#99.