Steps to reproduce
- Go to https://svelte-plotly-5lon9xrrn-m93as-projects.vercel.app/
- Click on “Enable Fullscreen”
- See that the button still says “Enable Fullscreen”, not “Disable Fullscreen“
Details
This is caused by plotly#6394 – Plotly.react ignores some changes in the config:
“Sometimes it works to change config via Plotly.react, sometimes it doesn't.”
Possible walkarounds
- Switch from
Plotly.react to Plotly.newPlot every time config is updated.
- Add
{ ...element._context } to config. (No idea what this does, see the upstream ticket)
- Display and then immediately hide the Plotly logo to trigger a config update, as seen here and here.
Steps to reproduce
Details
This is caused by plotly#6394 –
Plotly.reactignores some changes in the config:Possible walkarounds
Plotly.reacttoPlotly.newPlotevery time config is updated.{ ...element._context }to config. (No idea what this does, see the upstream ticket)