Skip to content

change event emitted twice #13

@andrewharvey

Description

@andrewharvey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions