plotly / dash-core-components

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
270 stars 147 forks source link

dcc.graph only triggers one click event on the same scattermapbox marker in sequence #1005

Open strokovnjaka opened 1 year ago

strokovnjaka commented 1 year ago

I have a dcc.Graph(id="graph", style={'width': '100%', 'height': '100vh'}) consisting of a fig = px.choropleth_mapbox(...) with added trace fig.add_trace(go.Scattermapbox()).

The callback that has graph's input Input('graph', 'clickData'), triggers only on the first click on a certain marker, subsequent clicks are ignored. However, clicking another marker does trigger an event, and then the first click to the the original marker again triggers an event.