This is useful when you have selectedpoints (based on a different plot perhaps) but no selections, and you still want a doubleclick to clear selectedpoints and generate plotly_selected and plotly_relayout events.
Calling this a bugfix because before this change, an invalid selection object will throw an error here because we convert it to null in the supplyDefaults step:
This is useful when you have
selectedpoints
(based on a different plot perhaps) but noselections
, and you still want a doubleclick to clearselectedpoints
and generateplotly_selected
andplotly_relayout
events.Calling this a bugfix because before this change, an invalid selection object will throw an error here because we convert it to
null
in thesupplyDefaults
step:https://github.com/plotly/plotly.js/blob/f6253deb1f6a4abba43afd2ab159760a4b2d62dd/src/components/selections/defaults.js#L25-L32