dash-core-components
dash-core-components copied to clipboard
dcc.graph only triggers one click event on the same scattermapbox marker in sequence
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.