Setting selectedPoints won't let you double click to deselect the points

Long story short, I have a situation where I build the graph again in a callback with the active selected points:

import plotly.graph_objects as go

def horizontal_bar_chart(values, categories, title=None, selected_points=None):
    fig = go.Figure(
        go.Bar(
            x=values,
            y=categories,
            orientation='h',
            selectedpoints=selected_points
        )        
    )
    fig.update_layout(
        plot_bgcolor="#fff",
        paper_bgcolor="#fff",
        margin={"t": 30, "b": 0, "r": 20, "l": 0, "pad": 0},
        title_text = title,
        transition={
            'duration': 500,
            'easing': 'cubic-in-out'
        }
    )
    fig.update_yaxes(title_text='outcome')
    return fig

Now, if I have selected points it will show those points(bars in my case) selected after building the graph, but! it won’t let me double-click to deselect those points.

Is this a bug or am I setting the points wrong?

Hey guys, has Anyone got an answer to this?
i am wondering if this is a bug or something I am doing wrong can’t figure this one out.

I have the same issue with my Scatter plot in the dash plotly app. Selected points are not released with a double click, although I specified this explicitly

dcc.Graph(id = ‘map’,
figure = fig,
hoverData=None,
clickData = None,
config={
‘staticPlot’: False, # True, False
‘scrollZoom’: True, # True, False
‘doubleClick’: ‘reset’, # ‘reset’, ‘autosize’ or ‘reset+autosize’, False
‘showTips’: False, # True, False
‘displayModeBar’: True, # True, False, ‘hover’
‘watermark’: False,
‘modeBarButtonsToAdd’:[‘drawline’,
‘drawopenpath’,
‘drawclosedpath’,
‘drawcircle’,
‘drawrect’,
‘eraseshape’
]
#‘modeBarButtonsToRemove’: [‘pan2d’,‘select2d’],
},)

Any help will be much appreciated