-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
toPlotly.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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working